Author: jscinoz-guest Date: 2008-07-02 04:49:47 +0000 (Wed, 02 Jul 2008) New Revision: 7668
Modified: packages/trunk/urbanterror/debian/scripts/urbanterror packages/trunk/urbanterror/debian/scripts/urbanterror-server Log: script cleanup Modified: packages/trunk/urbanterror/debian/scripts/urbanterror =================================================================== --- packages/trunk/urbanterror/debian/scripts/urbanterror 2008-07-02 04:49:46 UTC (rev 7667) +++ packages/trunk/urbanterror/debian/scripts/urbanterror 2008-07-02 04:49:47 UTC (rev 7668) @@ -2,6 +2,7 @@ # Adapted from Tremulous and Nexuiz launch scripts BINARY=/usr/lib/games/urbanterror/ioUrbanTerror BASE_PATH=/usr/share/games/urbanterror +CVARS="+set fs_basepath ${BASE_PATH}" QUIET=0 EXCUSE="\ Urban Terror client wrapper\n\ @@ -12,8 +13,8 @@ -q, --quiet\t\tDisable console output\n\ +<internal command>\tPass commands to the engine\n" -# Urban Terror binaries don't understand "regular" command line parameters. Let's -# catch them here, to avoid accidentally launching the binary. +# Urban Terror binaries don't understand "regular" command line parameters. +# Let's catch them here, to avoid accidentally launching the binary. while [ "$1" != "" ]; do { if [ ${1:0:1} = "+" ]; then @@ -34,9 +35,9 @@ # Ready to rumble! if [ ${QUIET} -eq 1 ]; then - exec ${BINARY} +set fs_basepath ${BASE_PATH} +set ttycon 0 $* >/dev/null 2>&1 + exec ${BINARY} ${CVARS} +set ttycon 0 $* >/dev/null 2>&1 else - exec ${BINARY} +set fs_basepath ${BASE_PATH} $* + exec ${BINARY} ${CVARS} $* fi exit $? Modified: packages/trunk/urbanterror/debian/scripts/urbanterror-server =================================================================== --- packages/trunk/urbanterror/debian/scripts/urbanterror-server 2008-07-02 04:49:46 UTC (rev 7667) +++ packages/trunk/urbanterror/debian/scripts/urbanterror-server 2008-07-02 04:49:47 UTC (rev 7668) @@ -2,6 +2,7 @@ # Adapted from Tremulous and Nexuiz launch scripts BINARY=/usr/lib/games/urbanterror/ioUrTded BASE_PATH=/usr/share/games/urbanterror +CVARS="+set fs_basepath ${BASE_PATH}" QUIET=0 EXCUSE="\ Urban Terror server wrapper\n\ @@ -12,8 +13,8 @@ -q, --quiet\t\tDisable console output\n\ +<internal command>\tPass commands to the engine\n" -# Urban Terror binaries don't understand "regular" command line parameters. Let's -# catch them here, to avoid accidentally launching the binary. +# Urban Terror binaries don't understand "regular" command line parameters. +# Let's catch them here, to avoid accidentally launching the binary. while [ "$1" != "" ]; do { if [ ${1:0:1} = "+" ]; then @@ -34,9 +35,9 @@ # Ready to rumble! if [ ${QUIET} -eq 1 ]; then - exec ${BINARY} +set fs_basepath ${BASE_PATH} +set ttycon 0 $* >/dev/null 2>&1 + exec ${BINARY} ${CVARS} +set ttycon 0 $* >/dev/null 2>&1 else - exec ${BINARY} +set fs_basepath ${BASE_PATH} $* + exec ${BINARY} ${CVARS} $* fi exit $? _______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits