diff options
Diffstat (limited to 'games-strategy/defcon-demo/files/defcon')
-rwxr-xr-x | games-strategy/defcon-demo/files/defcon | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/games-strategy/defcon-demo/files/defcon b/games-strategy/defcon-demo/files/defcon new file mode 100755 index 000000000000..6e9dd3b5307c --- /dev/null +++ b/games-strategy/defcon-demo/files/defcon @@ -0,0 +1,15 @@ +#!/bin/sh +if [ -n "GAMEDIR/lib" ] ; then + if [ "${LD_LIBRARY_PATH+set}" = "set" ] ; then + export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:GAMEDIR/lib" + else + export LD_LIBRARY_PATH="GAMEDIR/lib" + fi +fi +if [[ ! -e ~/.defcon/lib ]] ; then + mkdir -p ~/.defcon/lib \ + && cd ~/.defcon/lib \ + && ln -s "GAMEDIR"/lib/* . +fi +cd ~/.defcon/lib +LD_PRELOAD="GAMEDIR/lib/chdir.so" exec ./defcon.bin.x86 "$@" |