Commit cc5cf1c6 authored by petter's avatar petter
Browse files

more practical bash start script

git-svn-id: 0463f305-d864-43cb-8a47-61cf597d4139
parent 4e995f01
PRG=`type $0`
PRG=${PRG##* }
# If PRG is a symlink, trace it to the real home directory
while [ -L "$PRG" ]
newprg=$(ls -l ${PRG})
newprg=${newprg##*-> }
[ ${newprg} = ${newprg#/} ] && newprg=${PRG%/*}/${newprg}
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
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