Revision 1953 tmp/org.txm.setups/shared/mac/Applications/TXM.app/Contents/MacOS/TXM

TXM (revision 1953)
1 1
#!/bin/sh
2 2
# This script launch TXM in the right directory and with the right TXM.ini file
3 3

  
4
echo "Prepare redirections in $HOME/TXMPostInstallOutputLogs.txt and $HOME/TXMPostInstallErrorLogs.txt files"
4
echo "Preparing redirections in $HOME/TXMPostInstallOutputLogs.txt and $HOME/TXMPostInstallErrorLogs.txt files"
5 5

  
6 6
LOGFILESMSG=", see $HOME/TXMPostInstallOutputLogs.txt and $HOME/TXMPostInstallErrorLogs.txt output and error messages files."
7 7
VERSION=0.8.0
8 8
exec 3>$HOME/TXMPostInstallOutputLogs.txt
9 9
exec 4>$HOME/TXMPostInstallErrorLogs.txt
10

  
10
(
11 11
echo "$HOME is '$HOME'"
12 12

  
13 13
if [ ! -d "$HOME" ]; then
......
121 121
    fi
122 122
fi
123 123

  
124
#) 1>&3 2>&4
125 124

  
125

  
126 126
# don't exec TXM if problem occurs
127 127
if [ $? != 0 ]; then
128 128
    echo "TXM: An error occurred. Aborting$LOGFILESMSG";
......
150 150
OSVERSION=`sw_vers -productVersion`
151 151

  
152 152
echo "TXM: Running TXM for Mac OS X $OSVERSION with the JAR launcher..."
153
/Applications/TXM-TXMVERSION.app/Contents/TXM/jre/Contents/Home/bin/java -Djava.library.path="$(echo  /Applications/TXM-TXMVERSION.app/Contents/TXM/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_*/eclipse_*.so)" -XX:MaxPermSize=256m -XstartOnFirstThread $TXMINIARGSVM -jar "$(echo /Applications/TXM-TXMVERSION.app/Contents/TXM/plugins/org.eclipse.equinox.launcher_*.jar)" -os macosx -ws cocoa -arch x86_64 -consoleLog -showsplash -run --launcher.ini "$DOTTXMHOME/TXM.ini" -configuration "$DOTTXMHOME/configuration" -user "$DOTTXMHOME/user" -install "/Applications/TXM-TXMVERSION.app/Contents/TXM"
153
) 1>&3 2>&4
154

  
155
/Applications/TXM-TXMVERSION.app/Contents/TXM/jre/Contents/Home/bin/java -Djava.library.path="$(echo  /Applications/TXM-TXMVERSION.app/Contents/TXM/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_*/eclipse_*.so)" -XX:MaxPermSize=256m -XstartOnFirstThread $TXMINIARGSVM -jar "$(echo /Applications/TXM-TXMVERSION.app/Contents/TXM/plugins/org.eclipse.equinox.launcher_*.jar)" -os macosx -ws cocoa -arch x86_64 -showsplash -run --launcher.ini "$DOTTXMHOME/TXM.ini" -configuration "$DOTTXMHOME/configuration" -user "$DOTTXMHOME/user" -install "/Applications/TXM-TXMVERSION.app/Contents/TXM"

Also available in: Unified diff