[SCM] Installer for game data files branch, heretic, updated. 0e1f44954b4ed150de36207f500e48409693fcbd
Jon Dowland
jmtd at debian.org
Mon Jan 24 23:37:26 UTC 2011
The following commit has been merged in the heretic branch:
commit 0e1f44954b4ed150de36207f500e48409693fcbd
Author: Jon Dowland <jmtd at debian.org>
Date: Mon Jan 24 23:34:15 2011 +0000
doom-common: allow overriding WADDIR
diff --git a/lib/doom-common b/lib/doom-common
index 2a5520f..9942c49 100644
--- a/lib/doom-common
+++ b/lib/doom-common
@@ -18,7 +18,12 @@ checksum() {
debug "checksum = $CHECKSUM"
}
-WADDIR="/usr/share/games/doom"
+set +u
+if [ "$GAME" = "" ]; then
+ GAME=doom
+fi
+set -u
+WADDIR="/usr/share/games/$GAME"
DEB="$DATADIR/$DEBBASE"
go() {
diff --git a/supported/heretic b/supported/heretic
index 8a86092..6297620 100644
--- a/supported/heretic
+++ b/supported/heretic
@@ -15,4 +15,5 @@ check_for_v19() {
}
+GAME=heretic
. $LIBDIR/doom-common
--
Installer for game data files
More information about the Pkg-games-commits
mailing list