patches/gargoyle-02-libexec.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 2126 b9f56167b3f2
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2126
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     1
--- gargoyle-2008.12.25/garglk/launcher.sh-orig	2008-12-30 19:44:19.884600000 -0600
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     2
+++ gargoyle-2008.12.25/garglk/launcher.sh	2008-12-30 19:44:53.432392000 -0600
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     3
@@ -5,19 +5,7 @@
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     4
 # to set LD_LIBRARY_PATH.
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     5
 #
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     6
 
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     7
-if [ `uname` != Darwin ]
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     8
-then
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     9
-    abspath=`readlink -f $0`	# get the full path of this script
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    10
-    dirpath=`dirname $abspath`	# get directory part
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    11
-    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$dirpath
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    12
-else
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    13
-    dirpath=`dirname $0`
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    14
-fi
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    15
-
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    16
-if [ x"$dirpath" == x ]
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    17
-then
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    18
-    dirpath=.
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    19
-fi
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    20
+dirpath=/usr/lib/gargoyle
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    21
 
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    22
 #
b9f56167b3f2 2009-08-25 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    23
 # Check the arguments