r5244 - packages/trunk/ogre-contrib/debian
Andres Mejia
ceros-guest at alioth.debian.org
Sun Jan 6 05:59:20 UTC 2008
Author: ceros-guest
Date: 2008-01-06 05:59:20 +0000 (Sun, 06 Jan 2008)
New Revision: 5244
Modified:
packages/trunk/ogre-contrib/debian/
packages/trunk/ogre-contrib/debian/ogre-contrib-get-orig-source
Log:
Modified ogre-contrib-get-orig-source. Modified some svn property values.
Property changes on: packages/trunk/ogre-contrib/debian
___________________________________________________________________
Name: svn-bp:origUrl
- http://mentors.debian.net/debian/pool/contrib/o/ogre-contrib/ogre-contrib_1.4.5.orig.tar.gz
Name: svnpbp:origUrl
- http://ftp.debian.org/debian/pool/contrib/o/ogre-contrib/ogre-contrib_1.4.5.orig.tar.gz
Name: svn-bp:debOrigScript
+ debian/ogre-contrib-get-orig-source
Modified: packages/trunk/ogre-contrib/debian/ogre-contrib-get-orig-source
===================================================================
--- packages/trunk/ogre-contrib/debian/ogre-contrib-get-orig-source 2008-01-06 05:39:23 UTC (rev 5243)
+++ packages/trunk/ogre-contrib/debian/ogre-contrib-get-orig-source 2008-01-06 05:59:20 UTC (rev 5244)
@@ -8,6 +8,33 @@
OGRE_TARBALL=ogre-linux_osx-v1-4-6.tar.bz2
OGRE_TARBALL_CHECKSUM=ef1cf73106e0387624bfdd539cdf9de6
+USAGE="\n\
+This script is used to generate the orig tarball used in building\n\
+Debian packages for ogre-contrib-$OGRE_VERSION.\n\
+Usage: ogre-contrib-get-orig-source [OPTION]\n\
+\n\
+ -h, --help Display this help message.\n\
+ --keep-upstream-tarball Keep the upstream source tarball.\n\
+ --keep-orig-dir Keep the generated orig directory.\n"
+
+while [ "$#" -gt "0" ]
+do
+ case "$1" in
+ -h|--help)
+ echo "${USAGE}"
+ exit 1
+ ;;
+ --keep-upstream-tarball)
+ KEEP_UPSTREAM_TARBALL=1
+ shift
+ ;;
+ --keep-orig-dir)
+ KEEP_ORIG_DIR=1
+ shift
+ ;;
+ esac
+done
+
if [ ! -f $OGRE_TARBALL ] ; then
# Download the tarball
wget http://downloads.sourceforge.net/ogre/$OGRE_TARBALL
@@ -19,7 +46,7 @@
if [ $OGRE_TARBALL_CHECKSUM != $COMPUTED_CHECKSUM ] ; then
echo "Checksum verification failed. Checksum was $COMPUTED_CHECKSUM
Expected checksum $OGRE_TARBALL_CHECKSUM"
- exit 0
+ exit 1
else
echo "Checksum verified. Checksum is $COMPUTED_CHECKSUM."
fi
@@ -30,16 +57,16 @@
tar -xjf $OGRE_TARBALL
else
echo "Already found extracted ogrenew directory. Please remove
-or move ogrenew and ogre-contrib-$OGRE_VERSION directories and also ogre_$OGRE_VERSION.orig.tar.gz."
- exit 0
+or move ogrenew and ogre-contrib-$OGRE_VERSION directories and also ogre-contrib_$OGRE_VERSION.orig.tar.gz."
+ exit 1
fi
if [ ! -d ogre-contrib-$OGRE_VERSION ]; then
echo "Renaming extracted ogrenew directory to ogre-contrib-$OGRE_VERSION"
mv ogrenew ogre-contrib-$OGRE_VERSION
else
echo "Already found ogre-contrib-$OGRE_VERSION directory. Please remove or move
-ogrenew and ogre-contrib-$OGRE_VERSION directories and also ogre_$OGRE_VERSION.orig.tar.gz."
- exit 0
+ogrenew and ogre-contrib-$OGRE_VERSION directories and also ogre-contrib_$OGRE_VERSION.orig.tar.gz."
+ exit 1
fi
# Remove all CVS directories
@@ -67,5 +94,19 @@
rm -r ogre-contrib-$OGRE_VERSION/PlugIns/ParticleFX
# Create the tarball
-echo "Creating ogre-contrib-$OGRE_VERSION.orig tarball."
-tar -czf ogre-contrib_$OGRE_VERSION.orig.tar.gz ogre-contrib-$OGRE_VERSION/
+if [ ! -f ogre-contrib_$OGRE_VERSION.orig.tar.gz ]; then
+ echo "Creating orig tarball."
+ tar -czf ogre-contrib_$OGRE_VERSION.orig.tar.gz ogre-contrib-$OGRE_VERSION/
+ if [ -z $KEEP_ORIG_DIR ]; then
+ echo "Removing extracted directory."
+ rm -rf ogre-contrib-$OGRE_VERSION/
+ fi
+ if [ -z $KEEP_UPSTREAM_TARBALL ]; then
+ echo "Removing upstream tarball"
+ rm $OGRE_TARBALL
+ fi
+else
+ echo "Already found orig tarball. Please remove or move ogrenew
+and ogre-contrib-$OGRE_VERSION directories and also ogre-contrib_$OGRE_VERSION.orig.tar.gz."
+ exit 1
+fi
More information about the Pkg-games-commits
mailing list