r7727 - packages/trunk/game-data-packager
Jon Dowland
jmtd-guest at alioth.debian.org
Wed Jul 16 12:45:22 UTC 2008
Author: jmtd-guest
Date: 2008-07-16 12:45:21 +0000 (Wed, 16 Jul 2008)
New Revision: 7727
Modified:
packages/trunk/game-data-packager/game-data-packager
Log:
make the debug() thing work
Modified: packages/trunk/game-data-packager/game-data-packager
===================================================================
--- packages/trunk/game-data-packager/game-data-packager 2008-07-15 14:39:44 UTC (rev 7726)
+++ packages/trunk/game-data-packager/game-data-packager 2008-07-16 12:45:21 UTC (rev 7727)
@@ -44,12 +44,16 @@
echo
}
-DEBUG=TRUE
+set +u
+if [ -n "$DEBUG" ]; then
debug() {
- if [ -n "$DEBUG" ]; then
echo "DEBUG: $*" >&2
- fi
}
+else
+debug() { :; }
+fi
+set -u
+
warn() {
echo "WARNING: $*" >&2
}
More information about the Pkg-games-commits
mailing list