The following commit has been merged in the master branch:
commit 9d904e576c697636650443694fc53953c2393719
Author: Marco Amadori <[email protected]>
Date:   Wed Nov 11 00:17:29 2009 +0100

    Added an hacky launcher to avoid CWD unitsync.log creation.

diff --git a/debian/rules b/debian/rules
index df21db3..8f3a673 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,6 +24,9 @@ override_dh_auto_install:
        cd $(PROGDIR)/usr/share/doc/springlobby && \
        rm COPYING INSTALL AUTHORS && \
        gzip -9 ChangeLog README THANKS
+       # install launcher
+       mv $(PROGDIR)/usr/games/springlobby 
$(PROGDIR)/usr/games/springlobby.real
+       install debian/springlobby.launcher $(PROGDIR)/usr/games/springlobby
 
 override_dh_auto_clean:
        +dh_auto_clean
diff --git a/debian/springlobby.launcher b/debian/springlobby.launcher
new file mode 100755
index 0000000..60e783c
--- /dev/null
+++ b/debian/springlobby.launcher
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# Simple springlobby launcher
+# since springlobby is using libunitsync.so which opens a log file in the CWD
+# this program will just CD to a sane default before launching springlobby
+# this launcher will be removed as soon as libunitsync.so will be fixed
+
+if [ -s "/etc/spring/datadir" ]; then
+       DATADIR="`cat /etc/spring/datadir`"
+else
+       DATADIR="$HOME/.spring"
+fi
+
+DATADIR="`eval readlink -f ${DATADIR}`"
+
+if [ ! -d "${DATADIR}" ]; then
+       mkdir "${DATADIR}"
+fi
+
+cd "${DATADIR}"
+springlobby.real
+

-- 
single/multiplayer lobby for the Spring RTS engine

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to