The following commit has been merged in the heretic branch:
commit 0e1f44954b4ed150de36207f500e48409693fcbd
Author: Jon Dowland <[email protected]>
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

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to