Commit cc5cf1c6 authored by petter's avatar petter

more practical bash start script


git-svn-id: https://www2.in.tum.de/repos/ttt/trunk@66 0463f305-d864-43cb-8a47-61cf597d4139
parent 4e995f01
#!/bin/bash
PRG=`type $0`
PRG=${PRG##* }
# If PRG is a symlink, trace it to the real home directory
while [ -L "$PRG" ]
do
newprg=$(ls -l ${PRG})
newprg=${newprg##*-> }
[ ${newprg} = ${newprg#/} ] && newprg=${PRG%/*}/${newprg}
PRG="$newprg"
done
PRG=${PRG%/*}
echo Changing to application folder is ${PRG}
cd ${PRG}
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
echo Executing 64 bit version
......@@ -7,4 +20,4 @@ else
echo Executing 32 bit version
LD_LIBRARY_PATH=linux32 java -Xmx1024M -jar ttt.jar
fi
cd -
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment