author | wenzelm |
Thu, 07 Jan 2021 00:04:13 +0100 | |
changeset 73092 | 131ab1a941dd |
parent 72939 | dc858da93233 |
child 73136 | ca17e9ebfdf1 |
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 |
||
73092
131ab1a941dd
try GTK 3: some visual dropouts, but more stable e.g. in Sidekick "isabelle-markup";
wenzelm
parents:
72939
diff
changeset
|
15 |
ISABELLE_JAVA_SYSTEM_OPTIONS="-server -Dfile.encoding=UTF-8 -Disabelle.threads=0" |
53346
26c795734b3c
provide ISABELLE_JAVA_SYSTEM_OPTIONS via settings;
wenzelm
parents:
52790
diff
changeset
|
16 |
|
71791
bb72e75cec61
back to more modest (but uniform) Java stack, see 97fc4f657bda;
wenzelm
parents:
71790
diff
changeset
|
17 |
ISABELLE_TOOL_JAVA_OPTIONS="-Djava.awt.headless=true -Xms512m -Xmx4g -Xss16m" |
62840
d9744f41a4ec
renamed ISABELLE_BUILD_JAVA_OPTIONS to ISABELLE_TOOL_JAVA_OPTIONS;
wenzelm
parents:
62562
diff
changeset
|
18 |
|
71791
bb72e75cec61
back to more modest (but uniform) Java stack, see 97fc4f657bda;
wenzelm
parents:
71790
diff
changeset
|
19 |
ISABELLE_SCALAC_OPTIONS="-encoding UTF-8 -nowarn -target:jvm-1.8 -Xmax-classfile-name 130 -J-Xms512m -J-Xmx4g -J-Xss16m" |
70076
3b3089863eda
uniform JVM heap options for Isabelle/Scala tools and scalac (again);
wenzelm
parents:
70070
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 |
|
71736 | 23 |
isabelle_scala_service 'isabelle.Tools' |
24 |
[ -d "$ISABELLE_HOME/Admin" ] && isabelle_scala_service 'isabelle.Admin_Tools' |
|
69277
258bef08b31e
support for user-defined Isabelle/Scala command-line tools;
wenzelm
parents:
69255
diff
changeset
|
25 |
|
72193 | 26 |
isabelle_scala_service 'isabelle.Scala_Functions' |
71871
28def00726ca
more robust isabelle.Functions --- avoid Java reflection with unclear class/object treatment;
wenzelm
parents:
71791
diff
changeset
|
27 |
|
72837 | 28 |
isabelle_scala_service 'isabelle.Sessions$File_Format' |
71733 | 29 |
isabelle_scala_service 'isabelle.Bibtex$File_Format' |
69255
800b1ce96fce
more general support for Isabelle/PIDE file formats -- less hardwired Bibtex operations;
wenzelm
parents:
69151
diff
changeset
|
30 |
|
72157 | 31 |
isabelle_scala_service 'isabelle.ML_Statistics$Handler' |
32 |
isabelle_scala_service 'isabelle.Scala$Handler' |
|
72156
065dcd80293e
provide protocol handlers via isabelle_system_service;
wenzelm
parents:
71925
diff
changeset
|
33 |
isabelle_scala_service 'isabelle.Print_Operation$Handler' |
065dcd80293e
provide protocol handlers via isabelle_system_service;
wenzelm
parents:
71925
diff
changeset
|
34 |
isabelle_scala_service 'isabelle.Simplifier_Trace$Handler' |
72163
f5722290a4d0
allow user-defined server commands via isabelle_scala_service;
wenzelm
parents:
72162
diff
changeset
|
35 |
isabelle_scala_service 'isabelle.Server_Commands' |
72156
065dcd80293e
provide protocol handlers via isabelle_system_service;
wenzelm
parents:
71925
diff
changeset
|
36 |
|
60200
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
wenzelm
parents:
59565
diff
changeset
|
37 |
#paranoia settings -- avoid intrusion of alien options |
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
wenzelm
parents:
59565
diff
changeset
|
38 |
unset "_JAVA_OPTIONS" |
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
wenzelm
parents:
59565
diff
changeset
|
39 |
unset "JAVA_TOOL_OPTIONS" |
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
wenzelm
parents:
59565
diff
changeset
|
40 |
|
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
wenzelm
parents:
59565
diff
changeset
|
41 |
#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
|
42 |
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
|
43 |
|
27906 | 44 |
|
45 |
### |
|
62562
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
wenzelm
parents:
62559
diff
changeset
|
46 |
### 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
|
47 |
### |
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
wenzelm
parents:
62559
diff
changeset
|
48 |
|
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
wenzelm
parents:
62559
diff
changeset
|
49 |
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
|
50 |
|
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
wenzelm
parents:
62559
diff
changeset
|
51 |
|
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
wenzelm
parents:
62559
diff
changeset
|
52 |
### |
52052
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
wenzelm
parents:
51977
diff
changeset
|
53 |
### Batch sessions (cf. isabelle build) |
2435 | 54 |
### |
55 |
||
48466
3b2fb20df17d
further imitation of ISABELLE_USEDIR_OPTIONS via options;
wenzelm
parents:
48449
diff
changeset
|
56 |
ISABELLE_BUILD_OPTIONS="" |
61131 | 57 |
|
2435 | 58 |
|
59 |
### |
|
28504
7ad7d7d6df47
simplified main Isabelle executables: removed Isabelle and isabelle (replaced by isabelle-process), renamed isatool to isabelle;
wenzelm
parents:
28474
diff
changeset
|
60 |
### Document preparation (cf. isabelle latex/document) |
7773 | 61 |
### |
62 |
||
72314 | 63 |
ISABELLE_PDFLATEX="lualatex --file-line-error" |
7813 | 64 |
ISABELLE_BIBTEX="bibtex" |
14344 | 65 |
ISABELLE_MAKEINDEX="makeindex" |
11800 | 66 |
ISABELLE_EPSTOPDF="epstopdf" |
7773 | 67 |
|
68 |
||
69 |
### |
|
2968 | 70 |
### Misc path settings |
2426 | 71 |
### |
2294 | 72 |
|
72162 | 73 |
isabelle_directory '~' |
74 |
isabelle_directory '$ISABELLE_HOME_USER' |
|
75 |
isabelle_directory '~~' |
|
76 |
||
72552
461b3942148d
back to https://isabelle.sketis.net/components (more reliable);
wenzelm
parents:
72541
diff
changeset
|
77 |
ISABELLE_COMPONENT_REPOSITORY="https://isabelle.sketis.net/components" |
69434 | 78 |
ISABELLE_COMPONENTS_BASE="$USER_HOME/.isabelle/contrib" |
48840 | 79 |
|
2426 | 80 |
# The place for user configuration, heap files, etc. |
48553 | 81 |
if [ -z "$ISABELLE_IDENTIFIER" ]; then |
48449 | 82 |
ISABELLE_HOME_USER="$USER_HOME/.isabelle" |
83 |
else |
|
84 |
ISABELLE_HOME_USER="$USER_HOME/.isabelle/$ISABELLE_IDENTIFIER" |
|
85 |
fi |
|
2294 | 86 |
|
3177 | 87 |
# 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
|
88 |
ISABELLE_TOOLS="$ISABELLE_HOME/lib/Tools" |
2786 | 89 |
|
4334 | 90 |
# 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
|
91 |
ISABELLE_TMP_PREFIX="${TMPDIR:-/tmp}/isabelle-$USER" |
4334 | 92 |
|
68523
ccacc84e0251
clarified settings -- avoid hard-wired directories;
wenzelm
parents:
68384
diff
changeset
|
93 |
# Heap locations. |
ccacc84e0251
clarified settings -- avoid hard-wired directories;
wenzelm
parents:
68384
diff
changeset
|
94 |
ISABELLE_HEAPS="$ISABELLE_HOME_USER/heaps" |
ccacc84e0251
clarified settings -- avoid hard-wired directories;
wenzelm
parents:
68384
diff
changeset
|
95 |
ISABELLE_HEAPS_SYSTEM="$ISABELLE_HOME/heaps" |
ccacc84e0251
clarified settings -- avoid hard-wired directories;
wenzelm
parents:
68384
diff
changeset
|
96 |
|
68219 | 97 |
# HTML browser info. |
26212 | 98 |
ISABELLE_BROWSER_INFO="$ISABELLE_HOME_USER/browser_info" |
68523
ccacc84e0251
clarified settings -- avoid hard-wired directories;
wenzelm
parents:
68384
diff
changeset
|
99 |
ISABELLE_BROWSER_INFO_SYSTEM="$ISABELLE_HOME/browser_info" |
2780 | 100 |
|
16186 | 101 |
# Site settings check -- just to make it a little bit harder to copy this file verbatim! |
9225 | 102 |
[ -n "$ISABELLE_SITE_SETTINGS_PRESENT" ] && \ |
103 |
{ 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
|
104 |
ISABELLE_SITE_SETTINGS_PRESENT=true |
9225 | 105 |
|
13920 | 106 |
|
107 |
### |
|
28651 | 108 |
### Default logic |
13920 | 109 |
### |
16186 | 110 |
|
3184 | 111 |
ISABELLE_LOGIC=HOL |
2294 | 112 |
|
2786 | 113 |
|
13920 | 114 |
### |
115 |
### Docs |
|
116 |
### |
|
2294 | 117 |
|
16186 | 118 |
# 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
|
119 |
ISABELLE_DOCS="$ISABELLE_HOME/doc" |
2345 | 120 |
|
69412
f0b85c8aec46
proper ISABELLE_DOCS_RELEASE_NOTES (amending 39044da8bb5a);
wenzelm
parents:
69328
diff
changeset
|
121 |
ISABELLE_DOCS_RELEASE_NOTES="~~/ANNOUNCE:~~/README:~~/NEWS:~~/COPYRIGHT:~~/CONTRIBUTORS:~~/contrib/README:~~/src/Tools/jEdit/README:~~/README_REPOSITORY" |
71925
bf085daea304
clarified sessions: "Notable Examples in Isabelle/HOL";
wenzelm
parents:
71871
diff
changeset
|
122 |
ISABELLE_DOCS_EXAMPLES="~~/src/HOL/Examples/Seq.thy:~~/src/HOL/Examples/Drinker.thy:~~/src/HOL/Examples/ML.thy:~~/src/HOL/Unix/Unix.thy:~~/src/Tools/SML/Examples.thy:~~/src/Pure/ROOT.ML" |
56424
7032378cc097
proper settings instead of hard-wired information;
wenzelm
parents:
54937
diff
changeset
|
123 |
|
54685 | 124 |
# "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
|
125 |
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
|
126 |
linux) |
54685 | 127 |
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
|
128 |
;; |
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
wenzelm
parents:
49000
diff
changeset
|
129 |
macos) |
54685 | 130 |
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
|
131 |
;; |
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
wenzelm
parents:
49000
diff
changeset
|
132 |
windows) |
54685 | 133 |
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
|
134 |
;; |
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
wenzelm
parents:
49000
diff
changeset
|
135 |
esac |
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
wenzelm
parents:
49000
diff
changeset
|
136 |
|
54685 | 137 |
PDF_VIEWER="$ISABELLE_OPEN" |
2345 | 138 |
|
15218 | 139 |
|
2426 | 140 |
### |
63871 | 141 |
### Symbol rendering |
37058
c47653f3ec14
rendering information and style sheets via settings;
wenzelm
parents:
36212
diff
changeset
|
142 |
### |
c47653f3ec14
rendering information and style sheets via settings;
wenzelm
parents:
36212
diff
changeset
|
143 |
|
c47653f3ec14
rendering information and style sheets via settings;
wenzelm
parents:
36212
diff
changeset
|
144 |
ISABELLE_SYMBOLS="$ISABELLE_HOME/etc/symbols:$ISABELLE_HOME_USER/etc/symbols" |
c47653f3ec14
rendering information and style sheets via settings;
wenzelm
parents:
36212
diff
changeset
|
145 |
|
c47653f3ec14
rendering information and style sheets via settings;
wenzelm
parents:
36212
diff
changeset
|
146 |
|
c47653f3ec14
rendering information and style sheets via settings;
wenzelm
parents:
36212
diff
changeset
|
147 |
### |
69134 | 148 |
### OCaml |
149 |
### |
|
150 |
||
69935
11d0fdb29ebc
prefer central root: just one copy of this bulky material;
wenzelm
parents:
69810
diff
changeset
|
151 |
ISABELLE_OPAM_ROOT="$USER_HOME/.opam" |
69134 | 152 |
|
72939
dc858da93233
updated to zipperposition-2.0 and ocaml-4.07, which is required for it;
wenzelm
parents:
72837
diff
changeset
|
153 |
ISABELLE_OCAML_VERSION="ocaml-base-compiler.4.07.0" |
69135 | 154 |
|
69134 | 155 |
|
156 |
### |
|
69147 | 157 |
### Haskell |
158 |
### |
|
159 |
||
69935
11d0fdb29ebc
prefer central root: just one copy of this bulky material;
wenzelm
parents:
69810
diff
changeset
|
160 |
ISABELLE_STACK_ROOT="$USER_HOME/.stack" |
69147 | 161 |
|
72791
b79755daf0ad
updated to Haskell stack-2.5.1, stackage lts-16.12, ghc-8.8.4;
wenzelm
parents:
72552
diff
changeset
|
162 |
ISABELLE_STACK_RESOLVER="lts-16.12" |
69151 | 163 |
|
72791
b79755daf0ad
updated to Haskell stack-2.5.1, stackage lts-16.12, ghc-8.8.4;
wenzelm
parents:
72552
diff
changeset
|
164 |
ISABELLE_GHC_VERSION="ghc-8.8.4" |
69151 | 165 |
|
69147 | 166 |
|
167 |
### |
|
62354 | 168 |
### Misc settings |
7185 | 169 |
### |
170 |
||
63688
cc57255bf6ae
gnuplot presentation similar to former isatest-statistics;
wenzelm
parents:
63491
diff
changeset
|
171 |
ISABELLE_GNUPLOT="gnuplot" |
69328
4646fcb59121
support for fontforge and its scripting language;
wenzelm
parents:
69311
diff
changeset
|
172 |
ISABELLE_FONTFORGE="fontforge" |
63688
cc57255bf6ae
gnuplot presentation similar to former isatest-statistics;
wenzelm
parents:
63491
diff
changeset
|
173 |
|
68384
4a3fc3420747
full benchmarks, including all conditional theories;
wenzelm
parents:
68219
diff
changeset
|
174 |
#ISABELLE_MLTON="/usr/bin/mlton" |
4a3fc3420747
full benchmarks, including all conditional theories;
wenzelm
parents:
68219
diff
changeset
|
175 |
#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
|
176 |
#ISABELLE_SWIPL="/usr/bin/swipl" |