[Pkg-nethack-devel] nethack/debian/qt nethack-tty.sh,1.2,1.3 nethack.sh,1.2,1.3
Joshua Kwan
joshk-guest@quantz.debian.org
Mon, 17 Nov 2003 19:14:29 +0000
Update of /cvsroot/pkg-nethack/nethack/debian/qt
In directory quantz:/tmp/cvs-serv1145/qt
Modified Files:
nethack-tty.sh nethack.sh
Log Message:
Oops, allow -s to work - it needs to be argv[1]
Index: nethack.sh
===================================================================
RCS file: /cvsroot/pkg-nethack/nethack/debian/qt/nethack.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- nethack.sh 17 Nov 2003 02:59:19 -0000 1.2
+++ nethack.sh 17 Nov 2003 19:14:26 -0000 1.3
@@ -22,4 +22,11 @@
HACK=$HACKDIR/nethack-$HACKSTYLE
cd $HACKDIR
-exec $HACK "$@" -g$HACKSTYLE
+
+# Allow -s to work by not passing -g$HACKSTYLE
+
+if ! [ "$1" = "-s" ]; then
+ ARGS="-g$HACKSTYLE"
+fi
+
+exec $HACK "$@" $ARGS
Index: nethack-tty.sh
===================================================================
RCS file: /cvsroot/pkg-nethack/nethack/debian/qt/nethack-tty.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- nethack-tty.sh 17 Nov 2003 02:59:19 -0000 1.2
+++ nethack-tty.sh 17 Nov 2003 19:14:26 -0000 1.3
@@ -60,4 +60,10 @@
fi
cd $HACKDIR
-exec $HACK "$@" -gtty
+# Allow -s to work by not passing -gtty
+
+if ! [ "$1" = "-s" ]; then
+ ARGS="-gtty"
+fi
+
+exec $HACK "$@" $ARGS