etc/settings
author wenzelm
Wed Mar 20 21:15:20 2019 +0100 (4 months ago)
changeset 69928 3ed262d72468
parent 69810 a23d6ff31f79
child 69935 11d0fdb29ebc
permissions -rw-r--r--
avoid prompt;
     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 --illegal-access=warn"
    18 
    19 ISABELLE_TOOL_JAVA_OPTIONS="-Djava.awt.headless=true -Xms512m -Xmx2560m -Xss16m"
    20 
    21 classpath "$ISABELLE_HOME/lib/classes/Pure.jar"
    22 
    23 isabelle_scala_tools 'isabelle.Tools'
    24 [ -d "$ISABELLE_HOME/Admin" ] && isabelle_scala_tools 'isabelle.Admin_Tools'
    25 
    26 isabelle_file_format 'isabelle.Bibtex$File_Format'
    27 
    28 #paranoia settings -- avoid intrusion of alien options
    29 unset "_JAVA_OPTIONS"
    30 unset "JAVA_TOOL_OPTIONS"
    31 
    32 #paranoia settings -- avoid problems of Java/Swing versus XIM/IBus etc.
    33 unset XMODIFIERS
    34 
    35 
    36 ###
    37 ### Interactive sessions (cf. isabelle console)
    38 ###
    39 
    40 ISABELLE_LINE_EDITOR="rlwrap"
    41 
    42 
    43 ###
    44 ### Batch sessions (cf. isabelle build)
    45 ###
    46 
    47 ISABELLE_BUILD_OPTIONS=""
    48 
    49 
    50 ###
    51 ### Document preparation (cf. isabelle latex/document)
    52 ###
    53 
    54 ISABELLE_LATEX="latex -file-line-error"
    55 ISABELLE_PDFLATEX="pdflatex -file-line-error"
    56 ISABELLE_BIBTEX="bibtex"
    57 ISABELLE_MAKEINDEX="makeindex"
    58 ISABELLE_EPSTOPDF="epstopdf"
    59 
    60 if [ "$ISABELLE_PLATFORM_FAMILY" = "windows" ]; then
    61   ISABELLE_LATEX="latex -c-style-errors"
    62   ISABELLE_PDFLATEX="pdflatex -c-style-errors"
    63 fi
    64 
    65 
    66 ###
    67 ### Misc path settings
    68 ###
    69 
    70 ISABELLE_COMPONENT_REPOSITORY="https://isabelle.in.tum.de/components"
    71 ISABELLE_COMPONENTS_BASE="$USER_HOME/.isabelle/contrib"
    72 
    73 # The place for user configuration, heap files, etc.
    74 if [ -z "$ISABELLE_IDENTIFIER" ]; then
    75   ISABELLE_HOME_USER="$USER_HOME/.isabelle"
    76 else
    77   ISABELLE_HOME_USER="$USER_HOME/.isabelle/$ISABELLE_IDENTIFIER"
    78 fi
    79 
    80 # Where to look for isabelle tools (multiple dirs separated by ':').
    81 ISABELLE_TOOLS="$ISABELLE_HOME/lib/Tools"
    82 
    83 # Location for temporary files (should be on a local file system).
    84 ISABELLE_TMP_PREFIX="${TMPDIR:-/tmp}/isabelle-$USER"
    85 
    86 # Heap locations.
    87 ISABELLE_HEAPS="$ISABELLE_HOME_USER/heaps"
    88 ISABELLE_HEAPS_SYSTEM="$ISABELLE_HOME/heaps"
    89 
    90 # HTML browser info.
    91 ISABELLE_BROWSER_INFO="$ISABELLE_HOME_USER/browser_info"
    92 ISABELLE_BROWSER_INFO_SYSTEM="$ISABELLE_HOME/browser_info"
    93 
    94 # Site settings check -- just to make it a little bit harder to copy this file verbatim!
    95 [ -n "$ISABELLE_SITE_SETTINGS_PRESENT" ] && \
    96   { echo >&2 "### Isabelle site settings already present!  Maybe copied etc/settings in full?"; }
    97 ISABELLE_SITE_SETTINGS_PRESENT=true
    98 
    99 
   100 ###
   101 ### Default logic
   102 ###
   103 
   104 ISABELLE_LOGIC=HOL
   105 
   106 
   107 ###
   108 ### Docs
   109 ###
   110 
   111 # Where to look for docs (multiple dirs separated by ':').
   112 ISABELLE_DOCS="$ISABELLE_HOME/doc"
   113 
   114 ISABELLE_DOCS_RELEASE_NOTES="~~/ANNOUNCE:~~/README:~~/NEWS:~~/COPYRIGHT:~~/CONTRIBUTORS:~~/contrib/README:~~/src/Tools/jEdit/README:~~/README_REPOSITORY"
   115 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"
   116 
   117 # "open" within desktop environment (potentially asynchronous)
   118 case "$ISABELLE_PLATFORM_FAMILY" in
   119   linux)
   120     ISABELLE_OPEN="xdg-open"
   121     ;;
   122   macos)
   123     ISABELLE_OPEN="open"
   124     ;;
   125   windows)
   126     ISABELLE_OPEN="cygstart"
   127     ;;
   128 esac
   129 
   130 PDF_VIEWER="$ISABELLE_OPEN"
   131 DVI_VIEWER="$ISABELLE_OPEN"
   132 
   133 
   134 ###
   135 ### Symbol rendering
   136 ###
   137 
   138 ISABELLE_SYMBOLS="$ISABELLE_HOME/etc/symbols:$ISABELLE_HOME_USER/etc/symbols"
   139 
   140 
   141 ###
   142 ### OCaml
   143 ###
   144 
   145 ISABELLE_OPAM_ROOT="$ISABELLE_HOME_USER/opam"
   146 
   147 ISABELLE_OCAML_VERSION="4.05.0"
   148 
   149 
   150 ###
   151 ### Haskell
   152 ###
   153 
   154 ISABELLE_STACK_ROOT="$ISABELLE_HOME_USER/stack"
   155 
   156 ISABELLE_STACK_RESOLVER="lts-12.25"
   157 
   158 ISABELLE_GHC_VERSION="ghc-8.4.4"
   159 
   160 
   161 ###
   162 ### Misc settings
   163 ###
   164 
   165 ISABELLE_GNUPLOT="gnuplot"
   166 ISABELLE_FONTFORGE="fontforge"
   167 
   168 #ISABELLE_MLTON="/usr/bin/mlton"
   169 #ISABELLE_SMLNJ="/usr/bin/sml"
   170 #ISABELLE_SWIPL="/usr/bin/swipl"