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

Diff of /trunk/update-checkouts.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 54 by dpavlin, Sun Sep 30 20:47:08 2007 UTC revision 138 by dpavlin, Mon Sep 13 16:42:01 2010 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/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  ls -d */CVS | sed 's#/CVS##' | while read rep ; do
# Line 16  done Line 18  done
18    
19  ls -d */.git | sed 's#/.git##' | while read rep ; do  ls -d */.git | sed 's#/.git##' | while read rep ; do
20          echo "update $rep [git]"          echo "update $rep [git]"
21          cd $rep && git pull || ./update.sh || echo "FATAL ERROR!"          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 -          cd -
26  done  done
27    

Legend:
Removed from v.54  
changed lines
  Added in v.138

  ViewVC Help
Powered by ViewVC 1.1.26