sorry if this is a repost! Don’t know if it’s Pan or my ISP but there’s
some weirdness going on ATM!
What I’d like to be able to do is write a script that can copy all
files/directories from a subversion repository except .svn directories.
This is the best I can come up with from the command line (be gentle
- cd to repos dir
- tar --exclude=".svn" -cvf foo.tar *
- mv foo.tar /path/to/new
- cd /path/to/new
- tar -xvf foo.tar
It works but I’m hoping there’s a way to do this in a ruby script. If
I’d like to be able to input “/path/to/new”.
So if I’m in the repos dir:
cp_wo_svn.rb "to where?": /var/www "done!"