#!/bin/bash set -euo pipefail IFS=$'\n\t' REPOS=("morph" "morph-cli" "openaustralia-parser" "twfy" "publicwhip" "righttoknow" "planningalerts" "australian_local_councillors_images" "australian_local_councillors_popolo" "alaveteli" "infrastructure" "openaustralia" "yinyo" "buildstep" ) CONTRIBFILE=${PWD}/contributors.txt rm -f ${CONTRIBFILE} for repo in ${REPOS[@]}; do git clone https://github.com/openaustralia/${repo}.git pushd ${repo} git log --format="%an" --after=2018-07-01 --before=2019-07-01 >> ${CONTRIBFILE} popd done cat ${CONTRIBFILE} | wc -l