[rkward-cvs] SF.net SVN: rkward: [2300] trunk/rkward/makedist.sh
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Thu Jan 3 17:27:27 UTC 2008
Revision: 2300
http://rkward.svn.sourceforge.net/rkward/?rev=2300&view=rev
Author: tfry
Date: 2008-01-03 09:27:27 -0800 (Thu, 03 Jan 2008)
Log Message:
-----------
Add (experimental) script to facilitate creating distributions
Added Paths:
-----------
trunk/rkward/makedist.sh
Added: trunk/rkward/makedist.sh
===================================================================
--- trunk/rkward/makedist.sh (rev 0)
+++ trunk/rkward/makedist.sh 2008-01-03 17:27:27 UTC (rev 2300)
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+VERSION=${1}
+BASEDIR=`pwd`
+mkdir $BASEDIR/disttemp
+DISTDIRREL=rkward-$VERSION
+DISTDIR=$BASEDIR/disttemp/$DISTDIRREL
+mkdir $DISTDIR
+
+#prepare version.h
+echo "/* Version number of package */" > $DISTDIR/version.h
+echo "#define VERSION \"$VERSION\"" >> $DISTDIR/version.h
+
+cp -a AUTHORS CMakeLists.txt COPYING ChangeLog TODO INSTALL NOTES README configure $DISTDIR
+mkdir $DISTDIR/doc
+mkdir $DISTDIR/po
+mkdir $DISTDIR/rkward
+
+rsync -a --exclude '*~' --exclude '*.svn*' $EXCLUDES $BASEDIR/doc/* $DISTDIR/doc
+rsync -a --exclude '*~' --exclude '*.svn*' $EXCLUDES $BASEDIR/po/* $DISTDIR/po
+rsync -a --exclude '*~' --exclude '*.svn*' --exclude 'templates' $EXCLUDES $BASEDIR/rkward/* $DISTDIR/rkward
+
+cd $DISTDIR/po
+./Messages.sh
+cd $BASEDIR/disttemp
+
+tar -czf rkward-$VERSION.tar.gz $DISTDIRREL
+mv rkward-$VERSION.tar.gz $BASEDIR/
+
+cd $BASEDIR
+rm -rf $BASEDIR/disttemp
\ No newline at end of file
Property changes on: trunk/rkward/makedist.sh
___________________________________________________________________
Name: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list