1 |
#!/bin/sh |
#!/bin/sh |
2 |
|
|
3 |
|
test -f log && mv log log.old |
4 |
|
|
5 |
( |
( |
6 |
|
|
7 |
ls -d */CVS | sed 's#/CVS##' | while read rep ; do |
ls -d */CVS | sed 's#/CVS##' | while read rep ; do |
18 |
|
|
19 |
ls -d */.git | sed 's#/.git##' | while read rep ; do |
ls -d */.git | sed 's#/.git##' | while read rep ; do |
20 |
echo "update $rep [git]" |
echo "update $rep [git]" |
21 |
cd $rep && git pull || ./update.sh || echo "FATAL ERROR!" |
pull="pull" |
22 |
|
if grep svn-remote $rep/.git/config ; then pull="svn fetch" ; fi |
23 |
|
cd $rep && git $pull || ./update.sh || echo "FATAL ERROR!" |
24 |
|
ln -sf `pwd`/.git /var/cache/git/$rep.git || echo "ERROR: can't update symlink to gitweb" |
25 |
cd - |
cd - |
26 |
done |
done |
27 |
|
|