XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).
Moderator: General Moderators
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Tue May 22, 2007 4:03 am
Can someone shed some light on 'the proper way' to do this?
Currently when I come to make a release I have to copy the files out of the repository then use the 'find' command to get rid of the .svn directories.
Code: Select all
cp -r repos/trunk /somewhere/project-X.Y.Z
cd /somewhere/project-X.Y.Z
find . -name .svn -exec rm -rf {} \;
cd ..
tar cvzf project.X.Y.Z.tar.gz project.X.Y.Z
I'm quite happy doing this, but the "find . -name .svn .... " routine feels as though I'm doing it wrong. Am I?
dreamscape
Forum Commoner
Posts: 87 Joined: Wed Jun 08, 2005 10:06 am
Contact:
Post
by dreamscape » Tue May 22, 2007 7:51 am
You can use
svn export to extract a clean copy of the repository (i.e, without any .svn directories)
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Tue May 22, 2007 9:15 am
dreamscape wrote: You can use
svn export to extract a clean copy of the repository (i.e, without any .svn directories)
For some reason I always brushed over that, assuming it was the same as checkout. Thanks