1 |
#!/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 |
8 |
echo "update $rep [cvs]" |
9 |
cd $rep && cvs -q -z3 update -d || echo "FATAL ERROR!" |
10 |
cd - |
11 |
done |
12 |
|
13 |
ls -d */.svn | sed 's#/.svn##' | while read rep ; do |
14 |
echo "update $rep [svn]" |
15 |
cd $rep && svn update || echo "FATAL ERROR!" |
16 |
cd - |
17 |
done |
18 |
|
19 |
ls -d */.git | sed 's#/.git##' | while read rep ; do |
20 |
echo "update $rep [git]" |
21 |
cd $rep && git pull || ./update.sh || echo "FATAL ERROR!" |
22 |
ln -sf `pwd`/.git /var/cache/git/$rep.git || echo "ERROR: can't update symlink to gitweb" |
23 |
cd - |
24 |
done |
25 |
|
26 |
ls -d */_darcs | sed 's#/_darcs##' | while read rep ; do |
27 |
echo "update $rep [darcs]" |
28 |
cd $rep && darcs pull -a || echo "FATAL ERROR!" |
29 |
cd - |
30 |
done |
31 |
|
32 |
ls -d */.bzr | sed 's#/.bzr##' | while read rep ; do |
33 |
echo "update $rep [bzr]" |
34 |
cd $rep && bzr update || echo "FATAL ERROR!" |
35 |
cd - |
36 |
done |
37 |
|
38 |
ls -d */.hg | sed 's#/.hg##' | while read rep ; do |
39 |
echo "update $rep [mercurial]" |
40 |
cd $rep && hg pull && hg update || echo "FATAL ERROR!" |
41 |
cd - |
42 |
done |
43 |
|
44 |
) 2>&1 | tee log | grep -v '^?' |