Creating releases from svn repositories

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Creating releases from svn repositories

Post 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? :)
User avatar
dreamscape
Forum Commoner
Posts: 87
Joined: Wed Jun 08, 2005 10:06 am
Contact:

Post by dreamscape »

You can use svn export to extract a clean copy of the repository (i.e, without any .svn directories)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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:
Post Reply