/[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 54 - (hide annotations)
Sun Sep 30 20:47:08 2007 UTC (16 years, 6 months ago) by dpavlin
File MIME type: application/x-sh
File size: 912 byte(s)
go through all subdirectories in current directory and try to update SCM
checkout if any known is found

1 dpavlin 54 #!/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     cd -
21     done
22    
23     ls -d */_darcs | sed 's#/_darcs##' | while read rep ; do
24     echo "update $rep [darcs]"
25     cd $rep && darcs pull -a || echo "FATAL ERROR!"
26     cd -
27     done
28    
29     ls -d */.bzr | sed 's#/.bzr##' | while read rep ; do
30     echo "update $rep [bzr]"
31     cd $rep && bzr update || echo "FATAL ERROR!"
32     cd -
33     done
34    
35     ls -d */.hg | sed 's#/.hg##' | while read rep ; do
36     echo "update $rep [mercurial]"
37     cd $rep && hg pull && hg update || echo "FATAL ERROR!"
38     cd -
39     done
40    
41     ) 2>&1 | tee log | grep -v '^?'

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26