aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2008-01-13 12:57:42 +0000
committerMax Horn2008-01-13 12:57:42 +0000
commit3bda6cd127553c64782d9609b6009522e66c04ed (patch)
treea41766f4ab0d1f384e0108c4ed13cdc59e5205da
parent2222b947ba08d57ca9cd1b188e3abe5b31299a1b (diff)
downloadscummvm-rg350-3bda6cd127553c64782d9609b6009522e66c04ed.tar.gz
scummvm-rg350-3bda6cd127553c64782d9609b6009522e66c04ed.tar.bz2
scummvm-rg350-3bda6cd127553c64782d9609b6009522e66c04ed.zip
Adapted the dist-scummvm.sh tool for SVN usage, making it once more super easy to build release tar balls
svn-id: r30469
-rwxr-xr-xtools/dist-scummvm.sh29
1 files changed, 8 insertions, 21 deletions
diff --git a/tools/dist-scummvm.sh b/tools/dist-scummvm.sh
index 9fcd5520ed..ac98ef6d49 100755
--- a/tools/dist-scummvm.sh
+++ b/tools/dist-scummvm.sh
@@ -3,6 +3,7 @@
# dist-module.sh - make release tarballs for one CVS module
#
# Largely based on dist-fink.sh, Copyright (c) 2001 Christoph Pfisterer
+# Modified to use Subversion instead of SVN by Max Horn
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -21,8 +22,7 @@
### configuration
-#cvsroot=':ext:USER@cvs.sourceforge.net:/cvsroot/scummvm'
-cvsroot=':pserver:anonymous@cvs.sourceforge.net:/cvsroot/scummvm'
+svnroot='https://scummvm.svn.sourceforge.net/svnroot/scummvm'
### init
@@ -40,7 +40,7 @@ if [ -z "$tag" ]; then
fi
fullname="$module-$version"
-echo "packaging $module release $version, CVS tag $tag"
+echo "packaging $module release $version, SVN tag $tag"
### setup temp directory
@@ -54,29 +54,16 @@ if [ -d $fullname ]; then
exit 1
fi
-### check code out from CVS
+### check code out from SVN
+# TODO: Add support for making tarballs from trunk / branches?
echo "Exporting module $module, tag $tag from CVS:"
-cvs -d "$cvsroot" export -r "$tag" -d $fullname $module
+svn export "$svnroot/$module/tags/$tag" $fullname
if [ ! -d $fullname ]; then
- echo "CVS export failed, directory $fullname doesn't exist!"
+ echo "SVN export failed, directory $fullname doesn't exist!"
exit 1
fi
-### remove any .cvsignore files
-
-find $fullname -name .cvsignore -exec rm {} \;
-
-### versioning
-
-if [ -f $fullname/VERSION ]; then
- echo $version >$fullname/VERSION
-fi
-if [ -f $fullname/stamp-cvs-live ]; then
- rm -f $fullname/stamp-cvs-live
- touch $fullname/stamp-rel-$version
-fi
-
### roll the tarball
echo "Creating tarball $fullname.tar:"
@@ -108,6 +95,6 @@ fi
### finish up
echo "Done:"
-ls -l *.tar.gz
+ls -l $fullname.tar.gz $fullname.tar.bz2 $fullname.zip
exit 0