Author: ceros-guest
Date: 2008-01-16 01:05:52 +0000 (Wed, 16 Jan 2008)
New Revision: 5392

Modified:
   packages/trunk/warsow/debian/changelog
   packages/trunk/warsow/debian/warsow-get-orig-source
Log:
Modified warsow-get-orig-source.

Modified: packages/trunk/warsow/debian/changelog
===================================================================
--- packages/trunk/warsow/debian/changelog      2008-01-16 00:44:27 UTC (rev 
5391)
+++ packages/trunk/warsow/debian/changelog      2008-01-16 01:05:52 UTC (rev 
5392)
@@ -2,6 +2,8 @@
 
   [ Andres Mejia ]
   * Remove gnu.txt and license.txt from documentation.
+  * Renamed warsow-tarball.sh to warsow-get-orig-source.
+    + Modified script to make it more maintainable.
 
  -- Andres Mejia <[EMAIL PROTECTED]>  Tue, 15 Jan 2008 19:37:36 -0500
 

Modified: packages/trunk/warsow/debian/warsow-get-orig-source
===================================================================
--- packages/trunk/warsow/debian/warsow-get-orig-source 2008-01-16 00:44:27 UTC 
(rev 5391)
+++ packages/trunk/warsow/debian/warsow-get-orig-source 2008-01-16 01:05:52 UTC 
(rev 5392)
@@ -4,14 +4,14 @@
 # the warsow package and create an orig tarball of it.
 
 # Some variables to ease maintanence of this script
-WARSOW_VERSION=0.32.dfsg
-WARSOW_TARBALL=warsow_0.32_sdk.zip
-WARSOW_TARBALL_CHECKSUM=551b7a0cebd0c02968ce86fb12cd86b7
+WARSOW_VERSION="0.32.dfsg"
+WARSOW_TARBALL="warsow_0.32_sdk.zip"
+WARSOW_TARBALL_CHECKSUM="551b7a0cebd0c02968ce86fb12cd86b7"
 
 USAGE="\
 warsow orig tarball download script\n\
-This script will generate an orig tarball that's distrubeted through Debian.\n\
-Usage: warsow-tarball.sh [OPTION]\n\
+This script will generate an orig tarball that's distributed through Debian.\n\
+Usage: warsow-get-orig-source [OPTION]\n\
 \n\
  -h, --help                 Display this text\n\
 --keep-upstream             Don't delete the upstream source tarball\n\
@@ -49,7 +49,9 @@
 fi
 
 # Verify the checksum
+echo -n "Verifying MD5 checksum..."
 COMPUTED_CHECKSUM=`md5sum $WARSOW_TARBALL | cut -d ' ' -f 1`
+echo "done."
 
 if [ $WARSOW_TARBALL_CHECKSUM != $COMPUTED_CHECKSUM ] ; then
     echo "Checksum verification failed. Checksum was $COMPUTED_CHECKSUM
@@ -62,12 +64,13 @@
 # Prepare the warsow orig tarball
 if [ ! -d warsow-$WARSOW_VERSION ]; then
     echo "Extracting $WARSOW_TARBALL"
-    unzip -d -qq warsow-$WARSOW_VERSION $WARSOW_TARBALL
+    unzip -qq -d warsow-$WARSOW_VERSION $WARSOW_TARBALL
 else
     echo "Already found extracted warsow-$WARSOW_VERSION directory. Please 
remove or move warsow-$WARSOW_VERSION and also 
warsow_$WARSOW_VERSION.orig.tar.gz."
     exit 1
 fi
 
+# Components removed from upstream tarball.
 rm -r warsow-$WARSOW_VERSION/mapping warsow-$WARSOW_VERSION/modelling 
warsow-$WARSOW_VERSION/other
 rm -r warsow-$WARSOW_VERSION/warsow_0.32/libsrcs
 rm -r warsow-$WARSOW_VERSION/warsow_0.32/source/win32


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to