jobs/updatecheck.sh: Split out clean jobs/gccheck.sh
[girocco/susan.git] / jobs / updatecheck.sh
blob171afe9b386c5403b7573f595b9961b6199869dc
1 #!/bin/bash
3 . @basedir@/shlib.sh
5 if [ -e /tmp/gitupdatelock ]; then
6 echo "Locked!" >&2
7 exit 1
8 fi
9 touch /tmp/gitupdatelock
11 cd "$cfg_reporoot"
12 get_repo_list_here |
13 while read dir; do
14 progress "+ `date` $dir"
15 if [ ! -e "$dir"/.nofetch ]; then
16 "$cfg_basedir"/mirroring/update.sh "${dir%.git}"
18 progress "- `date` $dir"
19 done 2>&1
21 rm /tmp/gitupdatelock