jobs/gccheck.sh: Split off one-repo worker to jobs/gc.sh
[girocco.git] / jobs / updatecheck.sh
blob23ce05f30bac38d8f1c4e8a01bf1926a4a7c5f75
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 |
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