Revision 1953
tmp/org.txm.setups/shared/mac/Applications/TXM.app/Contents/MacOS/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" |
tmp/org.txm.setups/shared/debian/usr/bin/TXM (revision 1953) | ||
---|---|---|
3 | 3 |
VERSION=-TXMVERSION |
4 | 4 |
VERSIONWITHOUTSUB=-TXMVERSIONWITHOUTSUB |
5 | 5 |
|
6 |
echo "TXM: Preparing redirections in $HOME/TXM_PostInstallOutputLogs.txt and $HOME/TXM_PostInstallErrorLogs.txt files."
|
|
6 |
echo "TXM: Preparing redirections in $HOME/TXMPostInstallOutputLogs.txt and $HOME/TXMPostInstallErrorLogs.txt files."
|
|
7 | 7 |
|
8 |
LOGFILESMSG=", see $HOME/TXM_PostInstallOutputLogs.txt and $HOME/TXM_PostInstallErrorLogs.txt output and error messages files."
|
|
8 |
LOGFILESMSG=", see $HOME/TXMPostInstallOutputLogs.txt and $HOME/TXMPostInstallErrorLogs.txt output and error messages files."
|
|
9 | 9 |
|
10 |
exec 3>$HOME/TXM_PostInstallOutputLogs.txt
|
|
11 |
exec 4>$HOME/TXM_PostInstallErrorLogs.txt
|
|
10 |
exec 3>$HOME/TXMPostInstallOutputLogs.txt |
|
11 |
exec 4>$HOME/TXMPostInstallErrorLogs.txt |
|
12 | 12 |
|
13 | 13 |
TXMINSTALL="/usr/lib/TXM${VERSION}" |
14 | 14 |
TXMHOME="$HOME/TXM${VERSIONWITHOUTSUB}" |
... | ... | |
144 | 144 |
echo "TXM: already up to date." |
145 | 145 |
fi |
146 | 146 |
|
147 |
) 1>&3 2>&4 |
|
148 | 147 |
|
148 |
|
|
149 | 149 |
# don't exec TXM if problem occurs |
150 | 150 |
if [ $? != 0 ]; then |
151 | 151 |
echo "TXM: An error occurred. Aborting$LOGFILESMSG" |
... | ... | |
154 | 154 |
|
155 | 155 |
## uncomment next line to enable full debug |
156 | 156 |
#DEBUGOPTIONS="-log -clean -debug -console -noexit" |
157 |
) 1>&3 2>&4 |
|
157 | 158 |
|
158 |
SWT_GTK3=0 UBUNTU_MENUPROXY=0 exec "${TXMINSTALL}/TXM" -consoleLog "$@" -run --launcher.ini "$DOTTXMHOME/TXM.ini" $DEBUGOPTIONS -configuration "$DOTTXMHOME/configuration" -user "$DOTTXMHOME/user" -install "$TXMINSTALL" |
|
159 |
SWT_GTK3=0 UBUNTU_MENUPROXY=0 exec "${TXMINSTALL}/TXM" "$@" -run --launcher.ini "$DOTTXMHOME/TXM.ini" $DEBUGOPTIONS -configuration "$DOTTXMHOME/configuration" -user "$DOTTXMHOME/user" -install "$TXMINSTALL" |
Also available in: Unified diff