/[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

Contents of /trunk/update-checkouts.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 138 - (show annotations)
Mon Sep 13 16:42:01 2010 UTC (12 years, 2 months ago) by dpavlin
File MIME type: application/x-sh
File size: 1114 byte(s)
use git svn fetch
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 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 -
26 done
27
28 ls -d */_darcs | sed 's#/_darcs##' | while read rep ; do
29 echo "update $rep [darcs]"
30 cd $rep && darcs pull -a || echo "FATAL ERROR!"
31 cd -
32 done
33
34 ls -d */.bzr | sed 's#/.bzr##' | while read rep ; do
35 echo "update $rep [bzr]"
36 cd $rep && bzr update || echo "FATAL ERROR!"
37 cd -
38 done
39
40 ls -d */.hg | sed 's#/.hg##' | while read rep ; do
41 echo "update $rep [mercurial]"
42 cd $rep && hg pull && hg update || echo "FATAL ERROR!"
43 cd -
44 done
45
46 ) 2>&1 | tee log | grep -v '^?'

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26