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