| author | wenzelm | 
| Sat, 17 Nov 2018 16:29:09 +0100 | |
| changeset 69311 | 740b14b67472 | 
| parent 69283 | 39044da8bb5a | 
| child 69328 | 4646fcb59121 | 
| permissions | -rw-r--r-- | 
| 24211 | 1  | 
# -*- shell-script -*- :mode=shellscript:  | 
| 2294 | 2  | 
#  | 
| 54937 | 3  | 
# Isabelle system settings.  | 
| 16875 | 4  | 
#  | 
5  | 
# Important notes:  | 
|
| 47173 | 6  | 
# * See the "system" manual for explanations on Isabelle settings  | 
| 54937 | 7  | 
# * User settings go into $ISABELLE_HOME_USER/etc/settings  | 
| 16875 | 8  | 
# * DO NOT EDIT the repository copy of this file!  | 
| 54937 | 9  | 
# * DO NOT COPY this file into the $ISABELLE_HOME_USER directory!  | 
| 2309 | 10  | 
|
| 2426 | 11  | 
###  | 
| 52790 | 12  | 
### Isabelle/Scala  | 
| 27906 | 13  | 
###  | 
14  | 
||
| 65531 | 15  | 
ISABELLE_SCALAC_OPTIONS="-encoding UTF-8 -nowarn -target:jvm-1.8 -Xmax-classfile-name 130 -J-Xms128m -J-Xmx1024m -J-Xss2m"  | 
| 47009 | 16  | 
|
| 69311 | 17  | 
ISABELLE_JAVA_SYSTEM_OPTIONS="-server -Dfile.encoding=UTF-8 -Disabelle.threads=0 -Djdk.gtk.version=2.2 --illegal-access=warn"  | 
| 
53346
 
26c795734b3c
provide ISABELLE_JAVA_SYSTEM_OPTIONS via settings;
 
wenzelm 
parents: 
52790 
diff
changeset
 | 
18  | 
|
| 
67762
 
8b61174a3aa2
more Java heap, e.g. relevant for hg.graph on Isabelle repository;
 
wenzelm 
parents: 
67588 
diff
changeset
 | 
19  | 
ISABELLE_TOOL_JAVA_OPTIONS="-Djava.awt.headless=true -Xms512m -Xmx2560m -Xss16m"  | 
| 
62840
 
d9744f41a4ec
renamed ISABELLE_BUILD_JAVA_OPTIONS to ISABELLE_TOOL_JAVA_OPTIONS;
 
wenzelm 
parents: 
62562 
diff
changeset
 | 
20  | 
|
| 53577 | 21  | 
classpath "$ISABELLE_HOME/lib/classes/Pure.jar"  | 
| 
53576
 
793a429c63e7
maintain classpath in more elementary manner: turn ISABELLE_CLASSPATH into -classpath option, so that all jars are covered by sun.misc.Launcher.AppClassLoader (e.g. relevant for loading add-on resources);
 
wenzelm 
parents: 
53346 
diff
changeset
 | 
22  | 
|
| 
69277
 
258bef08b31e
support for user-defined Isabelle/Scala command-line tools;
 
wenzelm 
parents: 
69255 
diff
changeset
 | 
23  | 
isabelle_scala_tools 'isabelle.Regular_Tools'  | 
| 
 
258bef08b31e
support for user-defined Isabelle/Scala command-line tools;
 
wenzelm 
parents: 
69255 
diff
changeset
 | 
24  | 
[ -d "$ISABELLE_HOME/Admin" ] && isabelle_scala_tools 'isabelle.Admin_Tools'  | 
| 
 
258bef08b31e
support for user-defined Isabelle/Scala command-line tools;
 
wenzelm 
parents: 
69255 
diff
changeset
 | 
25  | 
|
| 
69255
 
800b1ce96fce
more general support for Isabelle/PIDE file formats -- less hardwired Bibtex operations;
 
wenzelm 
parents: 
69151 
diff
changeset
 | 
26  | 
isabelle_file_format 'isabelle.Bibtex$File_Format'  | 
| 
 
800b1ce96fce
more general support for Isabelle/PIDE file formats -- less hardwired Bibtex operations;
 
wenzelm 
parents: 
69151 
diff
changeset
 | 
27  | 
|
| 
60200
 
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
 
wenzelm 
parents: 
59565 
diff
changeset
 | 
28  | 
#paranoia settings -- avoid intrusion of alien options  | 
| 
 
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
 
wenzelm 
parents: 
59565 
diff
changeset
 | 
29  | 
unset "_JAVA_OPTIONS"  | 
| 
 
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
 
wenzelm 
parents: 
59565 
diff
changeset
 | 
30  | 
unset "JAVA_TOOL_OPTIONS"  | 
| 
 
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
 
wenzelm 
parents: 
59565 
diff
changeset
 | 
31  | 
|
| 
 
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
 
wenzelm 
parents: 
59565 
diff
changeset
 | 
32  | 
#paranoia settings -- avoid problems of Java/Swing versus XIM/IBus etc.  | 
| 
54037
 
ab77ec347220
unset XMODIFIERS by default, in order to prevent total loss of key events seen on Fedora 18/19;
 
wenzelm 
parents: 
53577 
diff
changeset
 | 
33  | 
unset XMODIFIERS  | 
| 
 
ab77ec347220
unset XMODIFIERS by default, in order to prevent total loss of key events seen on Fedora 18/19;
 
wenzelm 
parents: 
53577 
diff
changeset
 | 
34  | 
|
| 27906 | 35  | 
|
36  | 
###  | 
|
| 
62562
 
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
 
wenzelm 
parents: 
62559 
diff
changeset
 | 
37  | 
### Interactive sessions (cf. isabelle console)  | 
| 
 
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
 
wenzelm 
parents: 
62559 
diff
changeset
 | 
38  | 
###  | 
| 
 
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
 
wenzelm 
parents: 
62559 
diff
changeset
 | 
39  | 
|
| 
 
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
 
wenzelm 
parents: 
62559 
diff
changeset
 | 
40  | 
ISABELLE_LINE_EDITOR="rlwrap"  | 
| 
 
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
 
wenzelm 
parents: 
62559 
diff
changeset
 | 
41  | 
|
| 
 
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
 
wenzelm 
parents: 
62559 
diff
changeset
 | 
42  | 
|
| 
 
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
 
wenzelm 
parents: 
62559 
diff
changeset
 | 
43  | 
###  | 
| 
52052
 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 
wenzelm 
parents: 
51977 
diff
changeset
 | 
44  | 
### Batch sessions (cf. isabelle build)  | 
| 2435 | 45  | 
###  | 
46  | 
||
| 
48466
 
3b2fb20df17d
further imitation of ISABELLE_USEDIR_OPTIONS via options;
 
wenzelm 
parents: 
48449 
diff
changeset
 | 
47  | 
ISABELLE_BUILD_OPTIONS=""  | 
| 61131 | 48  | 
|
| 2435 | 49  | 
|
50  | 
###  | 
|
| 
28504
 
7ad7d7d6df47
simplified main Isabelle executables: removed Isabelle and isabelle (replaced by isabelle-process), renamed isatool to isabelle;
 
wenzelm 
parents: 
28474 
diff
changeset
 | 
51  | 
### Document preparation (cf. isabelle latex/document)  | 
| 7773 | 52  | 
###  | 
53  | 
||
| 67173 | 54  | 
ISABELLE_LATEX="latex -file-line-error"  | 
55  | 
ISABELLE_PDFLATEX="pdflatex -file-line-error"  | 
|
| 7813 | 56  | 
ISABELLE_BIBTEX="bibtex"  | 
| 14344 | 57  | 
ISABELLE_MAKEINDEX="makeindex"  | 
| 11800 | 58  | 
ISABELLE_EPSTOPDF="epstopdf"  | 
| 7773 | 59  | 
|
| 67173 | 60  | 
if [ "$ISABELLE_PLATFORM_FAMILY" = "windows" ]; then  | 
61  | 
ISABELLE_LATEX="latex -c-style-errors"  | 
|
62  | 
ISABELLE_PDFLATEX="pdflatex -c-style-errors"  | 
|
63  | 
fi  | 
|
64  | 
||
| 7773 | 65  | 
|
66  | 
###  | 
|
| 2968 | 67  | 
### Misc path settings  | 
| 2426 | 68  | 
###  | 
| 2294 | 69  | 
|
| 63491 | 70  | 
ISABELLE_COMPONENT_REPOSITORY="https://isabelle.in.tum.de/components"  | 
| 48840 | 71  | 
|
| 2426 | 72  | 
# The place for user configuration, heap files, etc.  | 
| 48553 | 73  | 
if [ -z "$ISABELLE_IDENTIFIER" ]; then  | 
| 48449 | 74  | 
ISABELLE_HOME_USER="$USER_HOME/.isabelle"  | 
75  | 
else  | 
|
76  | 
ISABELLE_HOME_USER="$USER_HOME/.isabelle/$ISABELLE_IDENTIFIER"  | 
|
77  | 
fi  | 
|
| 2294 | 78  | 
|
| 3177 | 79  | 
# Where to look for isabelle tools (multiple dirs separated by ':').  | 
| 
9787
 
fb8c5a66dbe8
more robust handling of spaces in args / file names;
 
wenzelm 
parents: 
9759 
diff
changeset
 | 
80  | 
ISABELLE_TOOLS="$ISABELLE_HOME/lib/Tools"  | 
| 2786 | 81  | 
|
| 4334 | 82  | 
# Location for temporary files (should be on a local file system).  | 
| 
58639
 
1df53737c59b
prefer Unix standard-conformant $TMPDIR over hard-wired /tmp;
 
wenzelm 
parents: 
57451 
diff
changeset
 | 
83  | 
ISABELLE_TMP_PREFIX="${TMPDIR:-/tmp}/isabelle-$USER"
 | 
| 4334 | 84  | 
|
| 
68523
 
ccacc84e0251
clarified settings -- avoid hard-wired directories;
 
wenzelm 
parents: 
68384 
diff
changeset
 | 
85  | 
# Heap locations.  | 
| 
 
ccacc84e0251
clarified settings -- avoid hard-wired directories;
 
wenzelm 
parents: 
68384 
diff
changeset
 | 
86  | 
ISABELLE_HEAPS="$ISABELLE_HOME_USER/heaps"  | 
| 
 
ccacc84e0251
clarified settings -- avoid hard-wired directories;
 
wenzelm 
parents: 
68384 
diff
changeset
 | 
87  | 
ISABELLE_HEAPS_SYSTEM="$ISABELLE_HOME/heaps"  | 
| 
 
ccacc84e0251
clarified settings -- avoid hard-wired directories;
 
wenzelm 
parents: 
68384 
diff
changeset
 | 
88  | 
|
| 68219 | 89  | 
# HTML browser info.  | 
| 26212 | 90  | 
ISABELLE_BROWSER_INFO="$ISABELLE_HOME_USER/browser_info"  | 
| 
68523
 
ccacc84e0251
clarified settings -- avoid hard-wired directories;
 
wenzelm 
parents: 
68384 
diff
changeset
 | 
91  | 
ISABELLE_BROWSER_INFO_SYSTEM="$ISABELLE_HOME/browser_info"  | 
| 2780 | 92  | 
|
| 16186 | 93  | 
# Site settings check -- just to make it a little bit harder to copy this file verbatim!  | 
| 9225 | 94  | 
[ -n "$ISABELLE_SITE_SETTINGS_PRESENT" ] && \  | 
95  | 
  { echo >&2 "### Isabelle site settings already present!  Maybe copied etc/settings in full?"; }
 | 
|
| 
32305
 
c5523ded51d9
basic support for components (which imitate the usual Isabelle directory layout);
 
wenzelm 
parents: 
32292 
diff
changeset
 | 
96  | 
ISABELLE_SITE_SETTINGS_PRESENT=true  | 
| 9225 | 97  | 
|
| 13920 | 98  | 
|
99  | 
###  | 
|
| 28651 | 100  | 
### Default logic  | 
| 13920 | 101  | 
###  | 
| 16186 | 102  | 
|
| 3184 | 103  | 
ISABELLE_LOGIC=HOL  | 
| 2294 | 104  | 
|
| 2786 | 105  | 
|
| 13920 | 106  | 
###  | 
107  | 
### Docs  | 
|
108  | 
###  | 
|
| 2294 | 109  | 
|
| 16186 | 110  | 
# Where to look for docs (multiple dirs separated by ':').  | 
| 
9787
 
fb8c5a66dbe8
more robust handling of spaces in args / file names;
 
wenzelm 
parents: 
9759 
diff
changeset
 | 
111  | 
ISABELLE_DOCS="$ISABELLE_HOME/doc"  | 
| 2345 | 112  | 
|
| 57451 | 113  | 
ISABELLE_DOCS_RELEASE_NOTES="ANNOUNCE:README:NEWS:COPYRIGHT:CONTRIBUTORS:contrib/README:src/Tools/jEdit/README:README_REPOSITORY"  | 
| 69283 | 114  | 
ISABELLE_DOCS_EXAMPLES="~~/src/HOL/ex/Seq.thy:~~/src/HOL/ex/ML.thy:~~/src/HOL/Unix/Unix.thy:~~/src/HOL/Isar_Examples/Drinker.thy:~~/src/Tools/SML/Examples.thy:~~/src/Pure/ROOT.ML"  | 
| 
56424
 
7032378cc097
proper settings instead of hard-wired information;
 
wenzelm 
parents: 
54937 
diff
changeset
 | 
115  | 
|
| 54685 | 116  | 
# "open" within desktop environment (potentially asynchronous)  | 
| 
50197
 
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
 
wenzelm 
parents: 
49000 
diff
changeset
 | 
117  | 
case "$ISABELLE_PLATFORM_FAMILY" in  | 
| 
 
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
 
wenzelm 
parents: 
49000 
diff
changeset
 | 
118  | 
linux)  | 
| 54685 | 119  | 
ISABELLE_OPEN="xdg-open"  | 
| 
50197
 
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
 
wenzelm 
parents: 
49000 
diff
changeset
 | 
120  | 
;;  | 
| 
 
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
 
wenzelm 
parents: 
49000 
diff
changeset
 | 
121  | 
macos)  | 
| 54685 | 122  | 
ISABELLE_OPEN="open"  | 
| 
50197
 
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
 
wenzelm 
parents: 
49000 
diff
changeset
 | 
123  | 
;;  | 
| 
 
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
 
wenzelm 
parents: 
49000 
diff
changeset
 | 
124  | 
windows)  | 
| 54685 | 125  | 
ISABELLE_OPEN="cygstart"  | 
| 
50197
 
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
 
wenzelm 
parents: 
49000 
diff
changeset
 | 
126  | 
;;  | 
| 
 
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
 
wenzelm 
parents: 
49000 
diff
changeset
 | 
127  | 
esac  | 
| 
 
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
 
wenzelm 
parents: 
49000 
diff
changeset
 | 
128  | 
|
| 54685 | 129  | 
PDF_VIEWER="$ISABELLE_OPEN"  | 
130  | 
DVI_VIEWER="$ISABELLE_OPEN"  | 
|
| 2345 | 131  | 
|
| 15218 | 132  | 
|
| 2426 | 133  | 
###  | 
| 63871 | 134  | 
### Symbol rendering  | 
| 
37058
 
c47653f3ec14
rendering information and style sheets via settings;
 
wenzelm 
parents: 
36212 
diff
changeset
 | 
135  | 
###  | 
| 
 
c47653f3ec14
rendering information and style sheets via settings;
 
wenzelm 
parents: 
36212 
diff
changeset
 | 
136  | 
|
| 
 
c47653f3ec14
rendering information and style sheets via settings;
 
wenzelm 
parents: 
36212 
diff
changeset
 | 
137  | 
ISABELLE_SYMBOLS="$ISABELLE_HOME/etc/symbols:$ISABELLE_HOME_USER/etc/symbols"  | 
| 
 
c47653f3ec14
rendering information and style sheets via settings;
 
wenzelm 
parents: 
36212 
diff
changeset
 | 
138  | 
|
| 
 
c47653f3ec14
rendering information and style sheets via settings;
 
wenzelm 
parents: 
36212 
diff
changeset
 | 
139  | 
|
| 
 
c47653f3ec14
rendering information and style sheets via settings;
 
wenzelm 
parents: 
36212 
diff
changeset
 | 
140  | 
###  | 
| 69134 | 141  | 
### OCaml  | 
142  | 
###  | 
|
143  | 
||
144  | 
ISABELLE_OPAM_ROOT="$ISABELLE_HOME_USER/opam"  | 
|
145  | 
||
| 69135 | 146  | 
ISABELLE_OCAML_VERSION="4.05.0"  | 
147  | 
||
| 69134 | 148  | 
|
149  | 
###  | 
|
| 69147 | 150  | 
### Haskell  | 
151  | 
###  | 
|
152  | 
||
153  | 
ISABELLE_STACK_ROOT="$ISABELLE_HOME_USER/stack"  | 
|
154  | 
||
| 69151 | 155  | 
ISABELLE_STACK_RESOLVER="lts-12.13"  | 
156  | 
||
157  | 
ISABELLE_GHC_VERSION="ghc-8.4.3"  | 
|
158  | 
||
| 69147 | 159  | 
|
160  | 
###  | 
|
| 62354 | 161  | 
### Misc settings  | 
| 7185 | 162  | 
###  | 
163  | 
||
| 
63688
 
cc57255bf6ae
gnuplot presentation similar to former isatest-statistics;
 
wenzelm 
parents: 
63491 
diff
changeset
 | 
164  | 
ISABELLE_GNUPLOT="gnuplot"  | 
| 
 
cc57255bf6ae
gnuplot presentation similar to former isatest-statistics;
 
wenzelm 
parents: 
63491 
diff
changeset
 | 
165  | 
|
| 
68384
 
4a3fc3420747
full benchmarks, including all conditional theories;
 
wenzelm 
parents: 
68219 
diff
changeset
 | 
166  | 
#ISABELLE_MLTON="/usr/bin/mlton"  | 
| 
 
4a3fc3420747
full benchmarks, including all conditional theories;
 
wenzelm 
parents: 
68219 
diff
changeset
 | 
167  | 
#ISABELLE_SMLNJ="/usr/bin/sml"  | 
| 
48187
 
6615f7ce670b
slightly modernized ISABELLE_GHC etc. -- /usr/bin is more likely to provide it by default (notably on macbroy2[0-9] and lxbroy*);
 
wenzelm 
parents: 
47758 
diff
changeset
 | 
168  | 
#ISABELLE_SWIPL="/usr/bin/swipl"  |