/[scripts]/trunk/update-checkouts.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/update-checkouts.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 98 - (hide annotations)
Mon Nov 3 19:23:41 2008 UTC (15 years, 4 months ago) by dpavlin
File MIME type: application/x-sh
File size: 1034 byte(s)
move log to log.old before overwrite

1 dpavlin 54 #!/bin/sh
2    
3 dpavlin 98 test -f log && mv log log.old
4    
5 dpavlin 54 (
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 dpavlin 57 ln -sf `pwd`/.git /var/cache/git/$rep.git || echo "ERROR: can't update symlink to gitweb"
23 dpavlin 54 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 '^?'

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26