repo.or.cz
/
girocco.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mirroring/*, jobs/gc.sh: daemons/*
[girocco.git]
/
jobs
/
updatecheck.sh
blob
7b8abf632dee287a7a52c2f2e5e092a1ec31c32f
1
#!/bin/bash
2
3
. @basedir@
/
shlib.sh
4
5
if
[
-e
/
tmp
/
gitupdatelock
];
then
6
echo
"Locked!"
>&
2
7
exit
1
8
fi
9
touch
/
tmp
/
gitupdatelock
10
11
cd
"
$cfg_reporoot
"
12
get_repo_list |
13
while
read
dir
;
do
14
progress
"+ `date`
$dir
"
15
if
[ !
-e
"
$dir
.git"
/
.nofetch
];
then
16
"
$cfg_basedir
"
/
daemons
/
update.sh
"
${dir}
"
17
fi
18
progress
"- `date`
$dir
"
19
done
2
>&
1
20
21
rm
/
tmp
/
gitupdatelock