Revision 28

Date:
2007/03/09 00:59:20
Author:
dpavlin
Revision Log:
handy script (which should be in root of your svn checkout) to overlay
checkout over root of your filesystem (useful for tracking configuration
files in svn)
Files:

Legend:

 
Added
 
Removed
 
Modified
  • trunk/svn-overlay.sh

     
    1 #!/bin/sh
    2
    3 rep=`svn info | grep URL | cut -d' ' -f2`
    4
    5 echo "using repository $rep"
    6 svn ls $rep | grep '/$' | while read dir ; do
    7 echo "overlay $dir"
    8 tmp="/tmp/svn-$dir"
    9 svn co "$rep/$dir" $tmp
    10 cd $tmp && find . | grep '.svn' | cpio -pdvu "/$dir"
    11 rm -Rf $tmp
    12 done