author | wenzelm |
Thu, 15 Jul 2021 16:35:45 +0200 | |
changeset 73987 | fc363a3b690a |
parent 73953 | 0b5e6851c722 |
child 74064 | d871882ad651 |
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 |
|
73953 | 19 |
ISABELLE_JAVAC_OPTIONS="-encoding UTF-8 -Xlint:-options -deprecation -source 11 -target 11" |
73710 | 20 |
ISABELLE_SCALAC_OPTIONS="-encoding UTF-8 -Wconf:cat=other-match-analysis:silent -feature -deprecation -target:11 -Xsource:3 -J-Xms512m -J-Xmx4g -J-Xss16m" |
70076
3b3089863eda
uniform JVM heap options for Isabelle/Scala tools and scalac (again);
wenzelm
parents:
70070
diff
changeset
|
21 |
|
73987
fc363a3b690a
build.props for isabelle.jar, including isabelle.jedit;
wenzelm
parents:
73953
diff
changeset
|
22 |
ISABELLE_SCALA_JAR="$ISABELLE_HOME/lib/classes/isabelle.jar" |
73721
52030acb19ac
option document_build refers to build engine in Isabelle/Scala;
wenzelm
parents:
73710
diff
changeset
|
23 |
|
60200
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
wenzelm
parents:
59565
diff
changeset
|
24 |
#paranoia settings -- avoid intrusion of alien options |
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
wenzelm
parents:
59565
diff
changeset
|
25 |
unset "_JAVA_OPTIONS" |
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
wenzelm
parents:
59565
diff
changeset
|
26 |
unset "JAVA_TOOL_OPTIONS" |
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
wenzelm
parents:
59565
diff
changeset
|
27 |
|
02fd729f2883
more paranoia settings, e.g. relevant for Ubuntu 15.04;
wenzelm
parents:
59565
diff
changeset
|
28 |
#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
|
29 |
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
|
30 |
|
27906 | 31 |
|
32 |
### |
|
62562
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
wenzelm
parents:
62559
diff
changeset
|
33 |
### 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
|
34 |
### |
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
wenzelm
parents:
62559
diff
changeset
|
35 |
|
905a5db3932d
back to external line editor, due to problems of JLine with multithreading of in vs. out;
wenzelm
parents:
62559
diff
changeset
|
36 |
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
|
37 |
|
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 |
### |
52052
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
wenzelm
parents:
51977
diff
changeset
|
40 |
### Batch sessions (cf. isabelle build) |
2435 | 41 |
### |
42 |
||
48466
3b2fb20df17d
further imitation of ISABELLE_USEDIR_OPTIONS via options;
wenzelm
parents:
48449
diff
changeset
|
43 |
ISABELLE_BUILD_OPTIONS="" |
61131 | 44 |
|
2435 | 45 |
|
46 |
### |
|
73721
52030acb19ac
option document_build refers to build engine in Isabelle/Scala;
wenzelm
parents:
73710
diff
changeset
|
47 |
### Document preparation (cf. isabelle latex) |
7773 | 48 |
### |
49 |
||
73721
52030acb19ac
option document_build refers to build engine in Isabelle/Scala;
wenzelm
parents:
73710
diff
changeset
|
50 |
if [ "$ISABELLE_PLATFORM_FAMILY" = "windows" ]; then |
73727 | 51 |
ISABELLE_PDFLATEX="pdflatex -interaction=nonstopmode -c-style-errors" |
73721
52030acb19ac
option document_build refers to build engine in Isabelle/Scala;
wenzelm
parents:
73710
diff
changeset
|
52 |
else |
73727 | 53 |
ISABELLE_PDFLATEX="pdflatex -interaction=nonstopmode -file-line-error" |
73721
52030acb19ac
option document_build refers to build engine in Isabelle/Scala;
wenzelm
parents:
73710
diff
changeset
|
54 |
fi |
52030acb19ac
option document_build refers to build engine in Isabelle/Scala;
wenzelm
parents:
73710
diff
changeset
|
55 |
|
73727 | 56 |
ISABELLE_LUALATEX="lualatex --interaction=nonstopmode --file-line-error" |
7813 | 57 |
ISABELLE_BIBTEX="bibtex" |
73740
c46ff0efa1ce
more direct use of latex tools: avoid diversion into "isabelle latex -o pdf" and its confusion of ISABELLE_PDFLATEX vs. ISABELLE_LUALATEX;
wenzelm
parents:
73727
diff
changeset
|
58 |
ISABELLE_MAKEINDEX="makeindex -c -q" |
11800 | 59 |
ISABELLE_EPSTOPDF="epstopdf" |
7773 | 60 |
|
61 |
||
62 |
### |
|
2968 | 63 |
### Misc path settings |
2426 | 64 |
### |
2294 | 65 |
|
72162 | 66 |
isabelle_directory '~' |
67 |
isabelle_directory '$ISABELLE_HOME_USER' |
|
68 |
isabelle_directory '~~' |
|
69 |
||
72552
461b3942148d
back to https://isabelle.sketis.net/components (more reliable);
wenzelm
parents:
72541
diff
changeset
|
70 |
ISABELLE_COMPONENT_REPOSITORY="https://isabelle.sketis.net/components" |
69434 | 71 |
ISABELLE_COMPONENTS_BASE="$USER_HOME/.isabelle/contrib" |
48840 | 72 |
|
2426 | 73 |
# The place for user configuration, heap files, etc. |
48553 | 74 |
if [ -z "$ISABELLE_IDENTIFIER" ]; then |
48449 | 75 |
ISABELLE_HOME_USER="$USER_HOME/.isabelle" |
76 |
else |
|
77 |
ISABELLE_HOME_USER="$USER_HOME/.isabelle/$ISABELLE_IDENTIFIER" |
|
78 |
fi |
|
2294 | 79 |
|
3177 | 80 |
# 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
|
81 |
ISABELLE_TOOLS="$ISABELLE_HOME/lib/Tools" |
2786 | 82 |
|
4334 | 83 |
# 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
|
84 |
ISABELLE_TMP_PREFIX="${TMPDIR:-/tmp}/isabelle-$USER" |
4334 | 85 |
|
68523
ccacc84e0251
clarified settings -- avoid hard-wired directories;
wenzelm
parents:
68384
diff
changeset
|
86 |
# Heap locations. |
ccacc84e0251
clarified settings -- avoid hard-wired directories;
wenzelm
parents:
68384
diff
changeset
|
87 |
ISABELLE_HEAPS="$ISABELLE_HOME_USER/heaps" |
ccacc84e0251
clarified settings -- avoid hard-wired directories;
wenzelm
parents:
68384
diff
changeset
|
88 |
ISABELLE_HEAPS_SYSTEM="$ISABELLE_HOME/heaps" |
ccacc84e0251
clarified settings -- avoid hard-wired directories;
wenzelm
parents:
68384
diff
changeset
|
89 |
|
68219 | 90 |
# HTML browser info. |
26212 | 91 |
ISABELLE_BROWSER_INFO="$ISABELLE_HOME_USER/browser_info" |
68523
ccacc84e0251
clarified settings -- avoid hard-wired directories;
wenzelm
parents:
68384
diff
changeset
|
92 |
ISABELLE_BROWSER_INFO_SYSTEM="$ISABELLE_HOME/browser_info" |
2780 | 93 |
|
16186 | 94 |
# Site settings check -- just to make it a little bit harder to copy this file verbatim! |
9225 | 95 |
[ -n "$ISABELLE_SITE_SETTINGS_PRESENT" ] && \ |
96 |
{ 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
|
97 |
ISABELLE_SITE_SETTINGS_PRESENT=true |
9225 | 98 |
|
13920 | 99 |
|
100 |
### |
|
28651 | 101 |
### Default logic |
13920 | 102 |
### |
16186 | 103 |
|
3184 | 104 |
ISABELLE_LOGIC=HOL |
2294 | 105 |
|
2786 | 106 |
|
13920 | 107 |
### |
73224
49686e3b1909
clarified links to external files, e.g. .pdf within .thy source document;
wenzelm
parents:
73180
diff
changeset
|
108 |
### Docs and external files |
13920 | 109 |
### |
2294 | 110 |
|
16186 | 111 |
# 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
|
112 |
ISABELLE_DOCS="$ISABELLE_HOME/doc" |
2345 | 113 |
|
69412
f0b85c8aec46
proper ISABELLE_DOCS_RELEASE_NOTES (amending 39044da8bb5a);
wenzelm
parents:
69328
diff
changeset
|
114 |
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
|
115 |
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
|
116 |
|
54685 | 117 |
# "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
|
118 |
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
|
119 |
linux) |
54685 | 120 |
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
|
121 |
;; |
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
wenzelm
parents:
49000
diff
changeset
|
122 |
macos) |
54685 | 123 |
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
|
124 |
;; |
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
wenzelm
parents:
49000
diff
changeset
|
125 |
windows) |
54685 | 126 |
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
|
127 |
;; |
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
wenzelm
parents:
49000
diff
changeset
|
128 |
esac |
b385d134926d
eval PDF_VIEWER/DVI_VIEWER command line, which allows additional quotes for program name, for example;
wenzelm
parents:
49000
diff
changeset
|
129 |
|
54685 | 130 |
PDF_VIEWER="$ISABELLE_OPEN" |
2345 | 131 |
|
73224
49686e3b1909
clarified links to external files, e.g. .pdf within .thy source document;
wenzelm
parents:
73180
diff
changeset
|
132 |
ISABELLE_EXTERNAL_FILES="bmp:eps:gif:jpeg:jpg:pdf:png:xmp" |
49686e3b1909
clarified links to external files, e.g. .pdf within .thy source document;
wenzelm
parents:
73180
diff
changeset
|
133 |
|
15218 | 134 |
|
2426 | 135 |
### |
63871 | 136 |
### Symbol rendering |
37058
c47653f3ec14
rendering information and style sheets via settings;
wenzelm
parents:
36212
diff
changeset
|
137 |
### |
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 |
ISABELLE_SYMBOLS="$ISABELLE_HOME/etc/symbols:$ISABELLE_HOME_USER/etc/symbols" |
c47653f3ec14
rendering information and style sheets via settings;
wenzelm
parents:
36212
diff
changeset
|
140 |
|
c47653f3ec14
rendering information and style sheets via settings;
wenzelm
parents:
36212
diff
changeset
|
141 |
|
c47653f3ec14
rendering information and style sheets via settings;
wenzelm
parents:
36212
diff
changeset
|
142 |
### |
69134 | 143 |
### OCaml |
144 |
### |
|
145 |
||
69935
11d0fdb29ebc
prefer central root: just one copy of this bulky material;
wenzelm
parents:
69810
diff
changeset
|
146 |
ISABELLE_OPAM_ROOT="$USER_HOME/.opam" |
69134 | 147 |
|
73606
460e7535df46
more recent OCaml and GHC stack: better support for Apple Silicon;
wenzelm
parents:
73370
diff
changeset
|
148 |
ISABELLE_OCAML_VERSION="ocaml-base-compiler.4.12.0" |
69135 | 149 |
|
69134 | 150 |
|
151 |
### |
|
69147 | 152 |
### Haskell |
153 |
### |
|
154 |
||
69935
11d0fdb29ebc
prefer central root: just one copy of this bulky material;
wenzelm
parents:
69810
diff
changeset
|
155 |
ISABELLE_STACK_ROOT="$USER_HOME/.stack" |
69147 | 156 |
|
73606
460e7535df46
more recent OCaml and GHC stack: better support for Apple Silicon;
wenzelm
parents:
73370
diff
changeset
|
157 |
ISABELLE_STACK_RESOLVER="lts-17.10" |
69151 | 158 |
|
73606
460e7535df46
more recent OCaml and GHC stack: better support for Apple Silicon;
wenzelm
parents:
73370
diff
changeset
|
159 |
ISABELLE_GHC_VERSION="ghc-8.10.4" |
69151 | 160 |
|
69147 | 161 |
|
162 |
### |
|
62354 | 163 |
### Misc settings |
7185 | 164 |
### |
165 |
||
63688
cc57255bf6ae
gnuplot presentation similar to former isatest-statistics;
wenzelm
parents:
63491
diff
changeset
|
166 |
ISABELLE_GNUPLOT="gnuplot" |
69328
4646fcb59121
support for fontforge and its scripting language;
wenzelm
parents:
69311
diff
changeset
|
167 |
ISABELLE_FONTFORGE="fontforge" |
63688
cc57255bf6ae
gnuplot presentation similar to former isatest-statistics;
wenzelm
parents:
63491
diff
changeset
|
168 |
|
68384
4a3fc3420747
full benchmarks, including all conditional theories;
wenzelm
parents:
68219
diff
changeset
|
169 |
#ISABELLE_MLTON="/usr/bin/mlton" |
4a3fc3420747
full benchmarks, including all conditional theories;
wenzelm
parents:
68219
diff
changeset
|
170 |
#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
|
171 |
#ISABELLE_SWIPL="/usr/bin/swipl" |