r3636 - in packages/trunk/sauerbraten/debian: . scripts
Bruno Fuddl-guestquot; Fuddl" Kleinert
fuddl-guest at alioth.debian.org
Sun Aug 12 18:33:24 UTC 2007
Author: fuddl-guest
Date: 2007-08-12 18:33:24 +0000 (Sun, 12 Aug 2007)
New Revision: 3636
Modified:
packages/trunk/sauerbraten/debian/changelog
packages/trunk/sauerbraten/debian/scripts/sauerbraten
Log:
wrapper script creates default configuration file in users' homes
Modified: packages/trunk/sauerbraten/debian/changelog
===================================================================
--- packages/trunk/sauerbraten/debian/changelog 2007-08-12 18:31:09 UTC (rev 3635)
+++ packages/trunk/sauerbraten/debian/changelog 2007-08-12 18:33:24 UTC (rev 3636)
@@ -4,11 +4,12 @@
* Add patch to make in-game commands /savemap and /map save/load maps
to/from a user's home directory
* Update the Debian menu file to the latest menu structure
+ * Wrapper script creates $HOME/.sauerbraten/config.cfg if it doesn't exist
[ Cyril Brulebois ]
* Added XS-Vcs-Svn and XS-Vcs-Browser fields in the control file.
- -- Bruno "Fuddl" Kleinert <fuddl at gmx.de> Wed, 04 Jul 2007 20:09:46 +0200
+ -- Bruno "Fuddl" Kleinert <fuddl at gmx.de> Sun, 12 Aug 2007 20:33:16 +0200
sauerbraten (0.0.20070413.dfsg-1) unstable; urgency=low
Modified: packages/trunk/sauerbraten/debian/scripts/sauerbraten
===================================================================
--- packages/trunk/sauerbraten/debian/scripts/sauerbraten 2007-08-12 18:31:09 UTC (rev 3635)
+++ packages/trunk/sauerbraten/debian/scripts/sauerbraten 2007-08-12 18:33:24 UTC (rev 3636)
@@ -1,4 +1,12 @@
#!/bin/sh
+if [ ! -f $HOME/.sauerbraten/config.cfg ]; then
+ echo "Wrapper: '$HOME/.sauerbraten/config.cfg' doesn't exist."
+ echo " Creating default configuration file."
+ mkdir -p "$HOME/.sauerbraten" || echo "Wrapper: Failed to create '$HOME/.sauerbraten'"
+ cp /usr/share/games/sauerbraten/data/defaults.cfg "$HOME/.sauerbraten/config.cfg" && \
+ echo "Wrapper: Copied default configuration to '$HOME/.sauerbraten/config.cfg'" && \
+ echo " Edit this file to your needs."
+fi
cd /usr/lib/games/sauerbraten
exec ./sauer_client "$@"
More information about the Pkg-games-commits
mailing list