[SCM] Installer for game data files branch, quake, updated. 96ca7132050fb5efd8d92a7f7c5a374a234f002d
Jon Dowland
jmtd at debian.org
Tue Apr 5 21:05:52 UTC 2011
The following commit has been merged in the quake branch:
commit 70f026717ad576f244f371bb2c3b7bd31a5a3427
Author: Jon Dowland <jmtd at debian.org>
Date: Tue Apr 5 21:24:54 2011 +0100
support both an unpacked quake dir and a cd-rom
diff --git a/supported/quake b/supported/quake
index 1dfbbb8..4e3b078 100644
--- a/supported/quake
+++ b/supported/quake
@@ -6,10 +6,13 @@ LONGNAME=Quake
quake_usage() {
echo "game-data-packager ${SHORTNAME} arguments:"
printf "\tgame-data-packager ${SHORTNAME} path
-\t\tpath\t\tpath to your mounted Quake CD-ROM\n"
+\t\tpath\t\tpath to a mounted Quake CD-ROM or unpacked Quake directory\n\
+\t\t-m path\t\tpath to a mounted Quake CD-ROM\n\
+\t\t-d path\t\tpath to an unpacked Quake directory\n"
}
mountpoint=""
+method="guess"
verify_args() {
case $# in
0)
@@ -19,6 +22,18 @@ verify_args() {
1)
mountpoint="$1"
;;
+ 2)
+ mountpoint="$2"
+ if [ "$1" = "-m" ]; then
+ method="cdrom"
+ elif [ "$1" = "-d" ]; then
+ method="dir"
+ else
+ usage >&2
+ quake_usage >&2
+ exit 1
+ fi
+ ;;
*)
usage >&2
quake_usage >&2
@@ -29,7 +44,23 @@ verify_args() {
go() {
- verify_args
+ verify_args "$@"
+ case "$method" in
+ "guess")
+ ;;
+ "cdrom")
+ cdrom_method
+ ;;
+ "dir")
+ dir_method
+ ;;
+ *)
+ die "internal error"
+ ;;
+ esac
+}
+
+cdrom_method() {
bit1sum=752f49131bb3ba832346e873c1bcfdc6
bit2sum=9ed67b39020575771e29645d977c9216
--
Installer for game data files
More information about the Pkg-games-commits
mailing list