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
jobs/gccheck.sh: Split off one-repo worker to jobs/gc.sh
[girocco.git]
/
jobs
/
gccheck.sh
blob
6665ae974832fd0fa09a8d78fc945659228a36d1
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
rootdir
=
"
$cfg_reporoot
"
12
13
get_repo_list |
14
while
read
dir
;
do
15
"
$cfg_basedir
"
/
jobs
/
gc.sh
"
$dir
"
16
done
2
>&
1
|
grep
-v
'^Pack.*created\.$'
17
18
rm
/
tmp
/
gitupdatelock