/[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 98 by dpavlin, Mon Nov 3 19:23:41 2008 UTC revision 138 by dpavlin, Mon Sep 13 16:42:01 2010 UTC
# Line 18  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"          ln -sf `pwd`/.git /var/cache/git/$rep.git || echo "ERROR: can't update symlink to gitweb"
25          cd -          cd -
26  done  done

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

  ViewVC Help
Powered by ViewVC 1.1.26