wneuper@59324
|
1 |
#!/usr/bin/env bash
|
wneuper@59324
|
2 |
#
|
wneuper@59324
|
3 |
# Author: Makarius
|
wneuper@59324
|
4 |
#
|
wneuper@59324
|
5 |
# Main Isabelle application script.
|
wneuper@59324
|
6 |
|
wneuper@59324
|
7 |
# dereference executable
|
wneuper@59324
|
8 |
if [ -L "$0" ]; then
|
wneuper@59324
|
9 |
TARGET="$(LC_ALL=C ls -l "$0" | sed 's/.* -> //')"
|
wneuper@59324
|
10 |
exec "$(cd "$(dirname "$0")"; cd "$(pwd -P)"; cd "$(dirname "$TARGET")"; pwd)/$(basename "$TARGET")" "$@"
|
wneuper@59324
|
11 |
fi
|
wneuper@59324
|
12 |
|
wneuper@59324
|
13 |
|
wneuper@59324
|
14 |
# minimal Isabelle environment
|
wneuper@59324
|
15 |
|
wneuper@59324
|
16 |
ISABELLE_HOME="$(cd "$(dirname "$0")"; cd "$(pwd -P)"; pwd)"
|
wneuper@59324
|
17 |
source "$ISABELLE_HOME/lib/scripts/isabelle-platform"
|
wneuper@59324
|
18 |
|
wneuper@59324
|
19 |
|
wneuper@59324
|
20 |
# Java runtime options
|
wneuper@59324
|
21 |
|
wneuper@59324
|
22 |
ISABELLE_NAME="$(basename "$0" .run)"
|
wneuper@59324
|
23 |
if [ -z "$ISABELLE_PLATFORM64" ]; then
|
wneuper@59324
|
24 |
declare -a JAVA_OPTIONS=($(perl -p -e 's,#.*$,,g;' "$ISABELLE_HOME/${ISABELLE_NAME}.options32"))
|
wneuper@59324
|
25 |
else
|
wneuper@59324
|
26 |
declare -a JAVA_OPTIONS=($(perl -p -e 's,#.*$,,g;' "$ISABELLE_HOME/${ISABELLE_NAME}.options64"))
|
wneuper@59324
|
27 |
fi
|
wneuper@59324
|
28 |
|
wneuper@59324
|
29 |
|
wneuper@59324
|
30 |
# main
|
wneuper@59324
|
31 |
|
wneuper@59324
|
32 |
#paranoia setting -- avoid problems of Java/Swing versus XIM/IBus etc.
|
wneuper@59324
|
33 |
unset XMODIFIERS
|
wneuper@59324
|
34 |
|
wneuper@59324
|
35 |
exec "$ISABELLE_HOME/contrib/jdk/${ISABELLE_PLATFORM64:-$ISABELLE_PLATFORM32}/jre/bin/java" \
|
wneuper@59324
|
36 |
"-Disabelle.root=$ISABELLE_HOME" "${JAVA_OPTIONS[@]}" \
|
wneuper@59324
|
37 |
-classpath "$ISABELLE_HOME/lib/classes/Pure.jar:$ISABELLE_HOME/contrib/jfreechart-1.0.14-1/lib/iText-2.1.5.jar:$ISABELLE_HOME/contrib/jfreechart-1.0.14-1/lib/jcommon-1.0.18.jar:$ISABELLE_HOME/contrib/jfreechart-1.0.14-1/lib/jfreechart-1.0.14.jar:$ISABELLE_HOME/contrib/jortho-1.0-2/jortho.jar:$ISABELLE_HOME/contrib/postgresql-42.1.4/postgresql-42.1.4.jar:$ISABELLE_HOME/contrib/scala-2.12.3/lib/jline-2.14.4.jar:$ISABELLE_HOME/contrib/scala-2.12.3/lib/scala-compiler.jar:$ISABELLE_HOME/contrib/scala-2.12.3/lib/scala-library.jar:$ISABELLE_HOME/contrib/scala-2.12.3/lib/scalap-2.12.3.jar:$ISABELLE_HOME/contrib/scala-2.12.3/lib/scala-parser-combinators_2.12-1.0.6.jar:$ISABELLE_HOME/contrib/scala-2.12.3/lib/scala-reflect.jar:$ISABELLE_HOME/contrib/scala-2.12.3/lib/scala-swing_2.12-2.0.0.jar:$ISABELLE_HOME/contrib/scala-2.12.3/lib/scala-xml_2.12-1.0.6.jar:$ISABELLE_HOME/contrib/ssh-java-20161009/lib/jsch-0.1.54.jar:$ISABELLE_HOME/contrib/ssh-java-20161009/lib/jzlib-1.1.3.jar:$ISABELLE_HOME/contrib/ssh-java-20161009/lib/jce.jar:$ISABELLE_HOME/contrib/sqlite-jdbc-3.20.0/sqlite-jdbc-3.20.0.jar:$ISABELLE_HOME/contrib/xz-java-1.6/lib/xz.jar:$ISABELLE_HOME/src/Tools/jEdit/dist/jedit.jar" \
|
wneuper@59324
|
38 |
"-splash:$ISABELLE_HOME/lib/logo/isabelle.gif" \
|
wneuper@59324
|
39 |
isabelle.Main "$@"
|