[game-data-packager] 24/39: Simplify supported/spear-of-destiny a lot

Simon McVittie smcv at debian.org
Sun Jan 11 01:52:23 UTC 2015


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch master
in repository game-data-packager.

commit 5bed3a17fee4f55b483e9c785731be819b86b37b
Author: Simon McVittie <smcv at debian.org>
Date:   Sat Jan 10 20:58:25 2015 +0000

    Simplify supported/spear-of-destiny a lot
---
 supported/spear-of-destiny | 40 ++--------------------------------------
 1 file changed, 2 insertions(+), 38 deletions(-)

diff --git a/supported/spear-of-destiny b/supported/spear-of-destiny
index 325ff77..a682a83 100644
--- a/supported/spear-of-destiny
+++ b/supported/spear-of-destiny
@@ -1,44 +1,8 @@
 SHORTNAME=spear-of-destiny
-LONGNAME="Spear Of Destiny"
-deb="xxx"
-
-sod_usage() {
-	echo "game-data-packager ${SHORTNAME} arguments:"
-	printf "\tgame-data-packager ${SHORTNAME} [ -f path ] | [ -w ]
-\t\t-f path\t\tpath to your existing copy of sodemo.zip, destiny.zip\n\
-\t\t\t\tor unpacked files, either demo or full version
-\t\t-w\t\tfetch sodemo.zip from the World Wide Web\n"
-}
+LONGNAME="Spear of Destiny (Wolfenstein 3D prequel)"
 
 . "$LIBDIR/via-python"
 
 go() {
-    case $# in
-        0)
-            sod_usage
-            exit 0
-            ;;
-        1)
-            if [ "$1" != "-w" ]; then
-                    usage >&2
-                    sod_usage >&2
-                    exit 1
-            fi
-            gdp_data_driven spear-of-destiny --
-            ;;
-        2)
-            if [ "$1" != "-f" ]; then
-                usage >&2
-                sod_usage >&2
-                exit 1
-            fi
-            downloaded=false
-            gdp_data_driven spear-of-destiny "$2"
-            ;;
-        *)
-            usage >&2
-            sod_usage >&2
-            exit 1
-            ;;
-    esac
+    gdp_data_driven spear-of-destiny "$@"
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list