Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-strategy/defcon-demo/files: defcon
Date: Wed, 10 Sep 2008 17:29:35
Message-Id: E1KdTVU-0007ZK-Qi@stork.gentoo.org
1 mr_bones_ 08/09/10 17:29:32
2
3 Added: defcon
4 Log:
5 initial commit. Heavily modified ebuild, originally submitted by Paul Bredbury via bug #168940
6 (Portage version: 2.1.4.4)
7
8 Revision Changes Path
9 1.1 games-strategy/defcon-demo/files/defcon
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/defcon-demo/files/defcon?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/defcon-demo/files/defcon?rev=1.1&content-type=text/plain
13
14 Index: defcon
15 ===================================================================
16 #!/bin/sh
17 if [ -n "GAMEDIR/lib" ] ; then
18 if [ "${LD_LIBRARY_PATH+set}" = "set" ] ; then
19 export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:GAMEDIR/lib"
20 else
21 export LD_LIBRARY_PATH="GAMEDIR/lib"
22 fi
23 fi
24 if [[ ! -e ~/.defcon/lib ]] ; then
25 mkdir -p ~/.defcon/lib \
26 && cd ~/.defcon/lib \
27 && ln -s "GAMEDIR"/lib/* .
28 fi
29 cd ~/.defcon/lib
30 LD_PRELOAD="GAMEDIR/lib/chdir.so" exec ./defcon.bin.x86 "$@"