]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
make start script working for links
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Dec 2007 17:11:35 +0000 (17:11 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Dec 2007 17:11:35 +0000 (17:11 +0000)
HLT/TPCLib/gui/src/startAliHLTGUI.in

index 9d71773b6ada6aa467f38757bcaf467f4a3804b7..fe6ecb9fece7d680e01241d34b19e6e9343af2cb 100755 (executable)
@@ -2,7 +2,9 @@
 # start script for the AliHLTGUI
 # the LD_LIBRARY_PATH variable is set according to the package configuration
 # before the GUI is started
-dir=`dirname $0`
+file=$0
+[ -h $file ] && file=`readlink $file`
+dir=`dirname $file`
 
 export ROOTSYS=@ROOTSYS@ 
 ADD_LIBDIR=`echo '@QT_LIBS@' | sed -e "s| |\n|g" | sed -e "/^-L/!d" | sed -e "s|^-L||"`