05 May

SourceForge Project Packager – from SVN source

This script will package your SVN code to a tar.gz file. Just give the name of the project as the first argument. Like this…

perl packager.pl jus5


#!/usr/bin/perl
#Package a Sourceforge project from its SVN source.

die("Please provide the name of the project as the argument") unless($ARGV[0]);

$project=$ARGV[0];
#$project='jus5';

`svn checkout https://$project.svn.sourceforge.net/svnroot/$project`;
`find $project/ -name .svn -exec rm -rf {} \\;`;
`tar -czf $project.tar.gz $project/`;
`rm -rf $project/`;