etc/settings
author wenzelm
Tue Sep 08 11:44:15 2015 +0200 (2015-09-08)
changeset 61131 83459eb76fe3
parent 61027 06ceb6dcdccd
child 61135 8f7d802b7a71
permissions -rw-r--r--
clarified ISABELLE_BUILD_JAVA_OPTIONS;
wenzelm@24211
     1
# -*- shell-script -*- :mode=shellscript:
wenzelm@2294
     2
#
wenzelm@54937
     3
# Isabelle system settings.
wenzelm@16875
     4
#
wenzelm@16875
     5
# Important notes:
wenzelm@47173
     6
#   * See the "system" manual for explanations on Isabelle settings
wenzelm@54937
     7
#   * User settings go into $ISABELLE_HOME_USER/etc/settings
wenzelm@16875
     8
#   * DO NOT EDIT the repository copy of this file!
wenzelm@54937
     9
#   * DO NOT COPY this file into the $ISABELLE_HOME_USER directory!
wenzelm@2309
    10
wenzelm@2426
    11
###
wenzelm@52790
    12
### Isabelle/Scala
wenzelm@27906
    13
###
wenzelm@27906
    14
wenzelm@56665
    15
ISABELLE_SCALA_BUILD_OPTIONS="-encoding UTF-8 -nowarn -target:jvm-1.7 -Xmax-classfile-name 130"
wenzelm@47009
    16
wenzelm@61027
    17
ISABELLE_JAVA_SYSTEM_OPTIONS="-server -XX:+UseG1GC -XX:+UseStringDeduplication -Dfile.encoding=UTF-8 -Disabelle.threads=0"
wenzelm@53346
    18
wenzelm@53577
    19
classpath "$ISABELLE_HOME/lib/classes/Pure.jar"
wenzelm@53576
    20
wenzelm@60200
    21
#paranoia settings -- avoid intrusion of alien options
wenzelm@60200
    22
unset "_JAVA_OPTIONS"
wenzelm@60200
    23
unset "JAVA_TOOL_OPTIONS"
wenzelm@60200
    24
wenzelm@60200
    25
#paranoia settings -- avoid problems of Java/Swing versus XIM/IBus etc.
wenzelm@54037
    26
unset XMODIFIERS
wenzelm@54037
    27
wenzelm@27906
    28
wenzelm@27906
    29
###
wenzelm@57441
    30
### Interactive sessions (cf. isabelle console)
wenzelm@25627
    31
###
wenzelm@25627
    32
wenzelm@57439
    33
ISABELLE_LINE_EDITOR="rlwrap"
wenzelm@25627
    34
wenzelm@25627
    35
wenzelm@25627
    36
###
wenzelm@52052
    37
### Batch sessions (cf. isabelle build)
wenzelm@2435
    38
###
wenzelm@2435
    39
wenzelm@48466
    40
ISABELLE_BUILD_OPTIONS=""
wenzelm@61131
    41
wenzelm@61131
    42
case "$ISABELLE_JAVA_PLATFORM" in
wenzelm@61131
    43
  x86_64-*)
wenzelm@61131
    44
    ISABELLE_BUILD_JAVA_OPTIONS="-Djava.awt.headless=true -Xms128m -Xmx1024m -Xss1m"
wenzelm@61131
    45
    ;;
wenzelm@61131
    46
  *)
wenzelm@61131
    47
    ISABELLE_BUILD_JAVA_OPTIONS="-Djava.awt.headless=true -Xms512m -Xmx4096m -Xss4m"
wenzelm@61131
    48
    ;;
wenzelm@61131
    49
esac
wenzelm@48466
    50
wenzelm@2435
    51
wenzelm@2435
    52
###
wenzelm@28504
    53
### Document preparation (cf. isabelle latex/document)
wenzelm@7773
    54
###
wenzelm@7773
    55
wenzelm@7773
    56
ISABELLE_LATEX="latex"
wenzelm@7773
    57
ISABELLE_PDFLATEX="pdflatex"
wenzelm@7813
    58
ISABELLE_BIBTEX="bibtex"
kleing@14344
    59
ISABELLE_MAKEINDEX="makeindex"
wenzelm@11800
    60
ISABELLE_EPSTOPDF="epstopdf"
wenzelm@7773
    61
wenzelm@7773
    62
wenzelm@7773
    63
###
wenzelm@2968
    64
### Misc path settings
wenzelm@2426
    65
###
wenzelm@2294
    66
wenzelm@48840
    67
ISABELLE_COMPONENT_REPOSITORY="http://isabelle.in.tum.de/components"
wenzelm@48840
    68
wenzelm@2426
    69
# The place for user configuration, heap files, etc.
wenzelm@48553
    70
if [ -z "$ISABELLE_IDENTIFIER" ]; then
wenzelm@48449
    71
  ISABELLE_HOME_USER="$USER_HOME/.isabelle"
wenzelm@48449
    72
else
wenzelm@48449
    73
  ISABELLE_HOME_USER="$USER_HOME/.isabelle/$ISABELLE_IDENTIFIER"
wenzelm@48449
    74
fi
wenzelm@2294
    75
wenzelm@3177
    76
# Where to look for isabelle tools (multiple dirs separated by ':').
wenzelm@9787
    77
ISABELLE_TOOLS="$ISABELLE_HOME/lib/Tools"
wenzelm@2786
    78
wenzelm@4334
    79
# Location for temporary files (should be on a local file system).
wenzelm@58639
    80
ISABELLE_TMP_PREFIX="${TMPDIR:-/tmp}/isabelle-$USER"
wenzelm@4334
    81
wenzelm@9787
    82
# Heap input locations. ML system identifier is included in lookup.
wenzelm@40387
    83
ISABELLE_PATH="$ISABELLE_HOME_USER/heaps:$ISABELLE_HOME/heaps"
wenzelm@2780
    84
wenzelm@9787
    85
# Heap output location. ML system identifier is appended automatically later on.
wenzelm@40387
    86
ISABELLE_OUTPUT="$ISABELLE_HOME_USER/heaps"
wenzelm@26212
    87
ISABELLE_BROWSER_INFO="$ISABELLE_HOME_USER/browser_info"
wenzelm@2780
    88
wenzelm@16186
    89
# Site settings check -- just to make it a little bit harder to copy this file verbatim!
wenzelm@9225
    90
[ -n "$ISABELLE_SITE_SETTINGS_PRESENT" ] && \
wenzelm@9225
    91
  { echo >&2 "### Isabelle site settings already present!  Maybe copied etc/settings in full?"; }
wenzelm@32305
    92
ISABELLE_SITE_SETTINGS_PRESENT=true
wenzelm@9225
    93
kleing@13920
    94
kleing@13920
    95
###
wenzelm@28651
    96
### Default logic
kleing@13920
    97
###
wenzelm@16186
    98
wenzelm@3184
    99
ISABELLE_LOGIC=HOL
wenzelm@2294
   100
wenzelm@2786
   101
kleing@13920
   102
###
kleing@13920
   103
### Docs
kleing@13920
   104
###
wenzelm@2294
   105
wenzelm@16186
   106
# Where to look for docs (multiple dirs separated by ':').
wenzelm@9787
   107
ISABELLE_DOCS="$ISABELLE_HOME/doc"
wenzelm@2345
   108
wenzelm@57451
   109
ISABELLE_DOCS_RELEASE_NOTES="ANNOUNCE:README:NEWS:COPYRIGHT:CONTRIBUTORS:contrib/README:src/Tools/jEdit/README:README_REPOSITORY"
wenzelm@56424
   110
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"
wenzelm@56424
   111
wenzelm@54685
   112
# "open" within desktop environment (potentially asynchronous)
wenzelm@50197
   113
case "$ISABELLE_PLATFORM_FAMILY" in
wenzelm@50197
   114
  linux)
wenzelm@54685
   115
    ISABELLE_OPEN="xdg-open"
wenzelm@50197
   116
    ;;
wenzelm@50197
   117
  macos)
wenzelm@54685
   118
    ISABELLE_OPEN="open"
wenzelm@50197
   119
    ;;
wenzelm@50197
   120
  windows)
wenzelm@54685
   121
    ISABELLE_OPEN="cygstart"
wenzelm@50197
   122
    ;;
wenzelm@50197
   123
esac
wenzelm@50197
   124
wenzelm@54685
   125
PDF_VIEWER="$ISABELLE_OPEN"
wenzelm@54685
   126
DVI_VIEWER="$ISABELLE_OPEN"
wenzelm@2345
   127
kleing@15218
   128
wenzelm@2426
   129
###
wenzelm@37058
   130
### Rendering information
wenzelm@37058
   131
###
wenzelm@37058
   132
wenzelm@43484
   133
ISABELLE_FONTS="$ISABELLE_HOME/lib/fonts/IsabelleText.ttf:$ISABELLE_HOME/lib/fonts/IsabelleTextBold.ttf"
wenzelm@37058
   134
ISABELLE_SYMBOLS="$ISABELLE_HOME/etc/symbols:$ISABELLE_HOME_USER/etc/symbols"
wenzelm@37058
   135
wenzelm@37058
   136
wenzelm@37058
   137
###
wenzelm@49000
   138
### Misc old-style settings
wenzelm@7185
   139
###
wenzelm@7185
   140
wenzelm@49000
   141
# Standard ML of New Jersey (slow!)
wenzelm@49000
   142
#ML_SYSTEM=smlnj-110
wenzelm@49000
   143
#ML_HOME="/usr/local/smlnj/bin"
wenzelm@49000
   144
#ML_OPTIONS="@SMLdebug=/dev/null @SMLalloc=1024"
wenzelm@49000
   145
#ML_PLATFORM=$(eval $("$ML_HOME/.arch-n-opsys" 2>/dev/null); echo "$HEAP_SUFFIX")
wenzelm@49000
   146
#SMLNJ_CYGWIN_RUNTIME=1
wenzelm@49000
   147
wenzelm@41968
   148
# Misc programming languages
wenzelm@48187
   149
#ISABELLE_GHC="/usr/bin/ghc"
wenzelm@48187
   150
#ISABELLE_OCAML="/usr/bin/ocaml"
wenzelm@48187
   151
#ISABELLE_SWIPL="/usr/bin/swipl"