[game-data-packager] 67/293: dirty hack to make botlib.log go in ~/.q3a/baseq3

Simon McVittie smcv at debian.org
Fri Oct 14 00:11:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch quake
in repository game-data-packager.

commit f238b64329d2a10b4f1015eba2452d8660b80f0f
Author: Jack Coulter <jscinoz at gmail.com>
Date:   Sun Jun 29 06:14:17 2008 +0000

    dirty hack to make botlib.log go in ~/.q3a/baseq3
---
 debian/scripts/quake3        | 9 +++++++++
 debian/scripts/quake3-server | 9 +++++++++
 2 files changed, 18 insertions(+)

diff --git a/debian/scripts/quake3 b/debian/scripts/quake3
index 6f1a068..5bfdb0f 100644
--- a/debian/scripts/quake3
+++ b/debian/scripts/quake3
@@ -32,6 +32,15 @@ while [ "$1" != "" ]; do {
 	shift
 }; done
 
+# baseq3 creates botlib.log in cwd rather than ~/.q3a/baseq3
+# this is a dirty hack to work around this issue
+if [ -d $HOME/.q3a/baseq3 ]; then
+	cd $HOME/.q3a/baseq3
+else
+	mkdir -p $HOME/.q3a/baseq3
+	cd $HOME/.q3a/baseq3
+fi
+
 # Ready to rumble!
 
 if [ ${QUIET} -eq 1 ]; then
diff --git a/debian/scripts/quake3-server b/debian/scripts/quake3-server
index 7b7f932..1a2dd46 100644
--- a/debian/scripts/quake3-server
+++ b/debian/scripts/quake3-server
@@ -32,6 +32,15 @@ while [ "$1" != "" ]; do {
 	shift
 }; done
 
+# baseq3 creates botlib.log in cwd rather than ~/.q3a/baseq3
+# this is a dirty hack to work around this issue
+if [ -d $HOME/.q3a/baseq3 ]; then
+	cd $HOME/.q3a/baseq3
+else
+	mkdir -p $HOME/.q3a/baseq3
+	cd $HOME/.q3a/baseq3
+fi
+
 # Ready to rumble!
 
 if [ ${QUIET} -eq 1 ]; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list