etc/settings
author wenzelm
Wed Nov 07 14:03:47 2018 +0100 (8 months ago)
changeset 69253 8bfa615ddde4
parent 69151 b310bc57f55f
child 69255 800b1ce96fce
permissions -rw-r--r--
proper ghc_setup / ocaml_setup on target Isabelle distribution (amending 2a17c481d05e);
     1 # -*- shell-script -*- :mode=shellscript:
     2 #
     3 # Isabelle system settings.
     4 #
     5 # Important notes:
     6 #   * See the "system" manual for explanations on Isabelle settings
     7 #   * User settings go into $ISABELLE_HOME_USER/etc/settings
     8 #   * DO NOT EDIT the repository copy of this file!
     9 #   * DO NOT COPY this file into the $ISABELLE_HOME_USER directory!
    10 
    11 ###
    12 ### Isabelle/Scala
    13 ###
    14 
    15 ISABELLE_SCALAC_OPTIONS="-encoding UTF-8 -nowarn -target:jvm-1.8 -Xmax-classfile-name 130 -J-Xms128m -J-Xmx1024m -J-Xss2m"
    16 
    17 ISABELLE_JAVA_SYSTEM_OPTIONS="-server -Dfile.encoding=UTF-8 -Disabelle.threads=0 -Djdk.gtk.version=2.2"
    18 
    19 ISABELLE_TOOL_JAVA_OPTIONS="-Djava.awt.headless=true -Xms512m -Xmx2560m -Xss16m"
    20 
    21 classpath "$ISABELLE_HOME/lib/classes/Pure.jar"
    22 
    23 #paranoia settings -- avoid intrusion of alien options
    24 unset "_JAVA_OPTIONS"
    25 unset "JAVA_TOOL_OPTIONS"
    26 
    27 #paranoia settings -- avoid problems of Java/Swing versus XIM/IBus etc.
    28 unset XMODIFIERS
    29 
    30 
    31 ###
    32 ### Interactive sessions (cf. isabelle console)
    33 ###
    34 
    35 ISABELLE_LINE_EDITOR="rlwrap"
    36 
    37 
    38 ###
    39 ### Batch sessions (cf. isabelle build)
    40 ###
    41 
    42 ISABELLE_BUILD_OPTIONS=""
    43 
    44 
    45 ###
    46 ### Document preparation (cf. isabelle latex/document)
    47 ###
    48 
    49 ISABELLE_LATEX="latex -file-line-error"
    50 ISABELLE_PDFLATEX="pdflatex -file-line-error"
    51 ISABELLE_BIBTEX="bibtex"
    52 ISABELLE_MAKEINDEX="makeindex"
    53 ISABELLE_EPSTOPDF="epstopdf"
    54 
    55 if [ "$ISABELLE_PLATFORM_FAMILY" = "windows" ]; then
    56   ISABELLE_LATEX="latex -c-style-errors"
    57   ISABELLE_PDFLATEX="pdflatex -c-style-errors"
    58 fi
    59 
    60 
    61 ###
    62 ### Misc path settings
    63 ###
    64 
    65 ISABELLE_COMPONENT_REPOSITORY="https://isabelle.in.tum.de/components"
    66 
    67 # The place for user configuration, heap files, etc.
    68 if [ -z "$ISABELLE_IDENTIFIER" ]; then
    69   ISABELLE_HOME_USER="$USER_HOME/.isabelle"
    70 else
    71   ISABELLE_HOME_USER="$USER_HOME/.isabelle/$ISABELLE_IDENTIFIER"
    72 fi
    73 
    74 # Where to look for isabelle tools (multiple dirs separated by ':').
    75 ISABELLE_TOOLS="$ISABELLE_HOME/lib/Tools"
    76 
    77 # Location for temporary files (should be on a local file system).
    78 ISABELLE_TMP_PREFIX="${TMPDIR:-/tmp}/isabelle-$USER"
    79 
    80 # Heap locations.
    81 ISABELLE_HEAPS="$ISABELLE_HOME_USER/heaps"
    82 ISABELLE_HEAPS_SYSTEM="$ISABELLE_HOME/heaps"
    83 
    84 # HTML browser info.
    85 ISABELLE_BROWSER_INFO="$ISABELLE_HOME_USER/browser_info"
    86 ISABELLE_BROWSER_INFO_SYSTEM="$ISABELLE_HOME/browser_info"
    87 
    88 # Site settings check -- just to make it a little bit harder to copy this file verbatim!
    89 [ -n "$ISABELLE_SITE_SETTINGS_PRESENT" ] && \
    90   { echo >&2 "### Isabelle site settings already present!  Maybe copied etc/settings in full?"; }
    91 ISABELLE_SITE_SETTINGS_PRESENT=true
    92 
    93 
    94 ###
    95 ### Default logic
    96 ###
    97 
    98 ISABELLE_LOGIC=HOL
    99 
   100 
   101 ###
   102 ### Docs
   103 ###
   104 
   105 # Where to look for docs (multiple dirs separated by ':').
   106 ISABELLE_DOCS="$ISABELLE_HOME/doc"
   107 
   108 ISABELLE_DOCS_RELEASE_NOTES="ANNOUNCE:README:NEWS:COPYRIGHT:CONTRIBUTORS:contrib/README:src/Tools/jEdit/README:README_REPOSITORY"
   109 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"
   110 
   111 # "open" within desktop environment (potentially asynchronous)
   112 case "$ISABELLE_PLATFORM_FAMILY" in
   113   linux)
   114     ISABELLE_OPEN="xdg-open"
   115     ;;
   116   macos)
   117     ISABELLE_OPEN="open"
   118     ;;
   119   windows)
   120     ISABELLE_OPEN="cygstart"
   121     ;;
   122 esac
   123 
   124 PDF_VIEWER="$ISABELLE_OPEN"
   125 DVI_VIEWER="$ISABELLE_OPEN"
   126 
   127 
   128 ###
   129 ### Symbol rendering
   130 ###
   131 
   132 ISABELLE_SYMBOLS="$ISABELLE_HOME/etc/symbols:$ISABELLE_HOME_USER/etc/symbols"
   133 
   134 
   135 ###
   136 ### OCaml
   137 ###
   138 
   139 ISABELLE_OPAM_ROOT="$ISABELLE_HOME_USER/opam"
   140 
   141 ISABELLE_OCAML_VERSION="4.05.0"
   142 
   143 
   144 ###
   145 ### Haskell
   146 ###
   147 
   148 ISABELLE_STACK_ROOT="$ISABELLE_HOME_USER/stack"
   149 
   150 ISABELLE_STACK_RESOLVER="lts-12.13"
   151 
   152 ISABELLE_GHC_VERSION="ghc-8.4.3"
   153 
   154 
   155 ###
   156 ### Misc settings
   157 ###
   158 
   159 ISABELLE_GNUPLOT="gnuplot"
   160 
   161 #ISABELLE_MLTON="/usr/bin/mlton"
   162 #ISABELLE_SMLNJ="/usr/bin/sml"
   163 #ISABELLE_SWIPL="/usr/bin/swipl"