etc/settings
author wenzelm
Thu Nov 22 17:34:37 2018 +0100 (20 months ago)
changeset 69328 4646fcb59121
parent 69311 740b14b67472
child 69412 f0b85c8aec46
permissions -rw-r--r--
support for fontforge and its scripting language;
     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.Regular_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 
    72 # The place for user configuration, heap files, etc.
    73 if [ -z "$ISABELLE_IDENTIFIER" ]; then
    74   ISABELLE_HOME_USER="$USER_HOME/.isabelle"
    75 else
    76   ISABELLE_HOME_USER="$USER_HOME/.isabelle/$ISABELLE_IDENTIFIER"
    77 fi
    78 
    79 # Where to look for isabelle tools (multiple dirs separated by ':').
    80 ISABELLE_TOOLS="$ISABELLE_HOME/lib/Tools"
    81 
    82 # Location for temporary files (should be on a local file system).
    83 ISABELLE_TMP_PREFIX="${TMPDIR:-/tmp}/isabelle-$USER"
    84 
    85 # Heap locations.
    86 ISABELLE_HEAPS="$ISABELLE_HOME_USER/heaps"
    87 ISABELLE_HEAPS_SYSTEM="$ISABELLE_HOME/heaps"
    88 
    89 # HTML browser info.
    90 ISABELLE_BROWSER_INFO="$ISABELLE_HOME_USER/browser_info"
    91 ISABELLE_BROWSER_INFO_SYSTEM="$ISABELLE_HOME/browser_info"
    92 
    93 # Site settings check -- just to make it a little bit harder to copy this file verbatim!
    94 [ -n "$ISABELLE_SITE_SETTINGS_PRESENT" ] && \
    95   { echo >&2 "### Isabelle site settings already present!  Maybe copied etc/settings in full?"; }
    96 ISABELLE_SITE_SETTINGS_PRESENT=true
    97 
    98 
    99 ###
   100 ### Default logic
   101 ###
   102 
   103 ISABELLE_LOGIC=HOL
   104 
   105 
   106 ###
   107 ### Docs
   108 ###
   109 
   110 # Where to look for docs (multiple dirs separated by ':').
   111 ISABELLE_DOCS="$ISABELLE_HOME/doc"
   112 
   113 ISABELLE_DOCS_RELEASE_NOTES="ANNOUNCE:README:NEWS:COPYRIGHT:CONTRIBUTORS:contrib/README:src/Tools/jEdit/README:README_REPOSITORY"
   114 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"
   115 
   116 # "open" within desktop environment (potentially asynchronous)
   117 case "$ISABELLE_PLATFORM_FAMILY" in
   118   linux)
   119     ISABELLE_OPEN="xdg-open"
   120     ;;
   121   macos)
   122     ISABELLE_OPEN="open"
   123     ;;
   124   windows)
   125     ISABELLE_OPEN="cygstart"
   126     ;;
   127 esac
   128 
   129 PDF_VIEWER="$ISABELLE_OPEN"
   130 DVI_VIEWER="$ISABELLE_OPEN"
   131 
   132 
   133 ###
   134 ### Symbol rendering
   135 ###
   136 
   137 ISABELLE_SYMBOLS="$ISABELLE_HOME/etc/symbols:$ISABELLE_HOME_USER/etc/symbols"
   138 
   139 
   140 ###
   141 ### OCaml
   142 ###
   143 
   144 ISABELLE_OPAM_ROOT="$ISABELLE_HOME_USER/opam"
   145 
   146 ISABELLE_OCAML_VERSION="4.05.0"
   147 
   148 
   149 ###
   150 ### Haskell
   151 ###
   152 
   153 ISABELLE_STACK_ROOT="$ISABELLE_HOME_USER/stack"
   154 
   155 ISABELLE_STACK_RESOLVER="lts-12.13"
   156 
   157 ISABELLE_GHC_VERSION="ghc-8.4.3"
   158 
   159 
   160 ###
   161 ### Misc settings
   162 ###
   163 
   164 ISABELLE_GNUPLOT="gnuplot"
   165 ISABELLE_FONTFORGE="fontforge"
   166 
   167 #ISABELLE_MLTON="/usr/bin/mlton"
   168 #ISABELLE_SMLNJ="/usr/bin/sml"
   169 #ISABELLE_SWIPL="/usr/bin/swipl"