r7703 - in packages/trunk/game-package: . supported

Jon Dowland jmtd-guest at alioth.debian.org
Mon Jul 14 19:30:18 UTC 2008


Author: jmtd-guest
Date: 2008-07-14 19:30:18 +0000 (Mon, 14 Jul 2008)
New Revision: 7703

Modified:
   packages/trunk/game-package/game-package
   packages/trunk/game-package/supported/doom
   packages/trunk/game-package/supported/doom2
Log:
some clean-ups to get this ready for lenny.

Modified: packages/trunk/game-package/game-package
===================================================================
--- packages/trunk/game-package/game-package	2008-07-14 15:59:10 UTC (rev 7702)
+++ packages/trunk/game-package/game-package	2008-07-14 19:30:18 UTC (rev 7703)
@@ -64,11 +64,15 @@
 OUTDIR=""
 
 # process command line arguments
+
+# defaults
+INSTALL="yes"
+PRESERVE="no"
+
 while [ $# -gt 1 ]; do
 	case "$1" in 
 		'-n')
 			INSTALL="no"
-			PRESERVE="yes"
 			;;
 		'-d')
 			PRESERVE="yes"
@@ -90,6 +94,11 @@
 	shift
 done
 
+if [ "$INSTALL" = "no" -a "$PRESERVE" = "no" ]; then
+	echo "if you specify -n, you must also specify -d." >&2
+	exit 1
+fi
+
 debug "INSTALL=$INSTALL"
 debug "PRESERVE=$PRESERVE"
 
@@ -110,11 +119,17 @@
 
 # now the game's handler needs to be executed
 shift
-go $*
+go "$@"
 
 # TODO: OUTFILE not referenced before here in this file; we're
 # assuming "go" will have defined it.
+
+if [ "$PRESERVE" = "yes" ]; then
+	echo "generated $OUTFILE."
+fi
+
 if [ "$INSTALL" = "yes" ]; then
+	debug "invoking gdebi to install the package"
 	install_deb "$OUTFILE"
 fi
 

Modified: packages/trunk/game-package/supported/doom
===================================================================
--- packages/trunk/game-package/supported/doom	2008-07-14 15:59:10 UTC (rev 7702)
+++ packages/trunk/game-package/supported/doom	2008-07-14 19:30:18 UTC (rev 7703)
@@ -50,7 +50,7 @@
 fi
 
 go() {
-	verify_args $*
+	verify_args "$@"
 	WADFILE=`unravel "$1"`
 	MD5SUM=`checksum "$WADFILE"`
 	debug "WADFILE=$WADFILE"

Modified: packages/trunk/game-package/supported/doom2
===================================================================
--- packages/trunk/game-package/supported/doom2	2008-07-14 15:59:10 UTC (rev 7702)
+++ packages/trunk/game-package/supported/doom2	2008-07-14 19:30:18 UTC (rev 7703)
@@ -47,7 +47,7 @@
 fi
 
 go() {
-	verify_args $*
+	verify_args "$@"
 	WADFILE=`unravel "$1"`
 	MD5SUM=`checksum "$WADFILE"`
 	check_for_v19




More information about the Pkg-games-commits mailing list