| author | wenzelm | 
| Tue, 03 May 2011 22:28:19 +0200 | |
| changeset 42672 | d34154b08579 | 
| parent 40571 | fbac01813bff | 
| child 43521 | d477b92109b8 | 
| permissions | -rwxr-xr-x | 
| 31919 | 1  | 
#!/usr/bin/env bash  | 
2  | 
#  | 
|
3  | 
# Author: Makarius  | 
|
4  | 
#  | 
|
5  | 
# Generic Isabelle application wrapper.  | 
|
6  | 
||
7  | 
if [ -L "$0" ]; then  | 
|
8  | 
TARGET="$(LC_ALL=C ls -l "$0" | sed 's/.* -> //')"  | 
|
9  | 
exec "$(cd "$(dirname "$0")"; cd "$(pwd -P)"; cd "$(dirname "$TARGET")"; pwd)/$(basename "$TARGET")" "$@"  | 
|
10  | 
fi  | 
|
11  | 
||
12  | 
||
13  | 
## settings  | 
|
14  | 
||
15  | 
ISABELLE_HOME="$(cd "$(dirname "$0")"; pwd -P)"  | 
|
16  | 
source "$ISABELLE_HOME/lib/scripts/getsettings" || exit 2  | 
|
17  | 
||
| 31922 | 18  | 
unset ISABELLE_SETTINGS_PRESENT  | 
| 
34282
 
549969a7f582
simplified build/bootstrap of Isabelle/Scala components -- avoid make;
 
wenzelm 
parents: 
31922 
diff
changeset
 | 
19  | 
unset ISABELLE_SITE_SETTINGS_PRESENT  | 
| 31922 | 20  | 
|
| 31919 | 21  | 
|
22  | 
## main  | 
|
23  | 
||
| 
34282
 
549969a7f582
simplified build/bootstrap of Isabelle/Scala components -- avoid make;
 
wenzelm 
parents: 
31922 
diff
changeset
 | 
24  | 
[ -e "$ISABELLE_HOME/Admin/build" ] && "$ISABELLE_HOME/Admin/build" jars  | 
| 
 
549969a7f582
simplified build/bootstrap of Isabelle/Scala components -- avoid make;
 
wenzelm 
parents: 
31922 
diff
changeset
 | 
25  | 
|
| 31919 | 26  | 
CLASSPATH="$(jvmpath "$CLASSPATH")"  | 
| 40571 | 27  | 
exec "$ISABELLE_TOOL" java \  | 
| 31920 | 28  | 
"-Disabelle.home=$(jvmpath "$ISABELLE_HOME")" \  | 
| 31919 | 29  | 
-jar "$(jvmpath "$ISABELLE_HOME/lib/classes/isabelle-scala.jar")" "$@"  |