ZigZig Forums  


::post new topic::
Re:Script for using bundles in subversion - 2006/08/09 13:32 OK I think I've got this working. I had to rework the 'find' line and args for the final svn commands. Here's the DIFF:

Code:

  --- /Users/tbrice/bin/update_bundle.pl    2006-08-09 13:57:31.000000000 -0500 +++ /Users/tbrice/bin/update_bundle_new.pl    2006-08-09 15:26:18.000000000 -0500 @@ -40,+40,@@  print "nBackup tar named $tarballnn";  `rm -rf $bundle_dir`; # nuke  `svn up $bundle_dir`; # recreate directory structure with .svn dirs -`find $bundle_dir -type f -print0|grep -v .svn|xargs -0 rm`; # get rid of all the files +`find $bundle_dir -type d -name .svn -prune -o -type f -print0 | xargs -0 rm`; # get rid of all the files   `tar xPzf $tarball`; # restore files  open SVN_ST"svn st $bundle_dir|";  while (<SVN_ST>) @@ -48,12 +48,12 @@      if ( /^!s+(.*)/ ) # missing files      {          print "removing $1n"; -        `svn rm $1`; +        `svn rm '$1'`;      }      if ( /^?s+(.*)/ ) # unversioned files      {          print "adding $1n"; -        `svn add $1`; +        `svn add '$1'`;      }  }  

  reply | quote

      Topics Author Date
    thread link
Script for using bundles in subversion
eriks 2006/07/20 04:23
    thread link
thread linkthread link Re:Script for using bundles in subversion
Rob 2006/07/20 11:51
    thread link
thread linkthread link Re:Script for using bundles in subversion
Tom 2006/08/09 11:13
    thread link
thread linkthread linkthread link Re:Script for using bundles in subversion
Tom 2006/08/09 11:48
    thread link
thread linkthread linkthread linkthread link Re:Script for using bundles in subversion
Tom 2006/08/09 12:05
    thread link
thread linkthread linkthread linkthread linkthread link Re:Script for using bundles in subversion
Tom 2006/08/09 13:32
    emo
thread linkthread linkthread linkthread linkthread linkthread link Re:Script for using bundles in subversion
Tom 2006/08/09 15:07
    thread link
thread linkthread link Re:Script for using bundles in subversion
Daniel Lyons 2006/08/28 15:41
    thread link
thread linkthread link Re:Script for using bundles in subversion
Simon HARPER 2007/04/20 00:53
    thread link
thread linkthread link Re:Script for using bundles in subversion
Hadley 2007/04/24 10:54
    thread link
thread linkthread link Re:Script for using bundles in subversion
Rob 2007/05/10 07:20
::post new topic::