[SCM] Installer for game data files branch, rott, updated. dcfa52fa9a59258e0b3152c8850168dd8fdcde42
Jon Dowland
jmtd at debian.org
Thu Mar 25 14:35:19 UTC 2010
The following commit has been merged in the rott branch:
commit 1e5679e3aacdfc98df74b63a8a5f8653f2b0d474
Author: Jon Dowland <jmtd at debian.org>
Date: Thu Mar 25 14:18:42 2010 +0000
add rott sub-args
diff --git a/supported/rott b/supported/rott
index 0ab91c2..d1b749a 100644
--- a/supported/rott
+++ b/supported/rott
@@ -4,20 +4,34 @@ LONGNAME="Rise of the Triad"
ZIPSUM=0fafd6b629eab80278fc726e31f9cf41
rott_usage() {
- echo "${SHORTNAME} arguments:" >&2
- printf "\tzipfile - optional path to 1rott13.zip\n\
-\tgame-data-packager will attempt to download the file from\n\
-\tInternet mirror sites if a local copy is not provided.\n" >&2
+ echo "game-data-packager ${SHORTNAME} arguments:"
+ printf "\tgame-data-packager ${SHORTNAME} [ -f path ] | [ -w ]
+\t\t-f path - path to your existing copy of 1rott13.zip\n\
+\t\t-w - fetch 1rott13.zip from the World Wide Web\n"
}
verify_args() {
case $# in
0)
- downloadzip
+ rott_usage
+ exit 0
;;
1)
+ if [ "$1" != "-w" ]; then
+ usage >&2
+ rott_usage >&2
+ exit 1
+ fi
+ downloadzip
+ ;;
+ 2)
+ if [ "$1" != "-f" ]; then
+ usage >&2
+ rott_usage >&2
+ exit 1
+ fi
downloaded=false
- rottzip="$1"
+ rottzip="$2"
;;
*)
usage >&2
@@ -95,7 +109,7 @@ go() {
# unpacking straight into it. Might be nicer to tidy away the
# unpack into a subdir (no risk of stamping over another part
# of g-d-p's operation) and specify full paths
- slipstream_file "$file" "$DATADIR/$file"
+ slipstream_file "$file" "usr/share/games/rott/$file"
done
slipstream_file "VENDOR.DOC" "usr/share/doc/rott-data/VENDOR.DOC"
slipstream_instsize
--
Installer for game data files
More information about the Pkg-games-commits
mailing list