Page 1 of 1

Creating releases from svn repositories

Posted: Tue May 22, 2007 4:03 am
by Chris Corbyn
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? :)

Posted: Tue May 22, 2007 7:51 am
by dreamscape
You can use svn export to extract a clean copy of the repository (i.e, without any .svn directories)

Posted: Tue May 22, 2007 9:15 am
by Chris Corbyn
dreamscape wrote:You can use svn export to extract a clean copy of the repository (i.e, without any .svn directories)
:oops: For some reason I always brushed over that, assuming it was the same as checkout. Thanks :oops: