etc/settings
author wenzelm
Thu Sep 10 11:47:14 2015 +0200 (2015-09-10 ago)
changeset 61148 b3efd7552d83
parent 61135 8f7d802b7a71
child 61355 31829cf53f5d
permissions -rw-r--r--
less ambitious options, to accomodate 4GB systems;
     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_SCALA_BUILD_OPTIONS="-encoding UTF-8 -nowarn -target:jvm-1.7 -Xmax-classfile-name 130"
    16 
    17 ISABELLE_JAVA_SYSTEM_OPTIONS="-server -XX:+UseG1GC -XX:+UseStringDeduplication -Dfile.encoding=UTF-8 -Disabelle.threads=0"
    18 
    19 classpath "$ISABELLE_HOME/lib/classes/Pure.jar"
    20 
    21 #paranoia settings -- avoid intrusion of alien options
    22 unset "_JAVA_OPTIONS"
    23 unset "JAVA_TOOL_OPTIONS"
    24 
    25 #paranoia settings -- avoid problems of Java/Swing versus XIM/IBus etc.
    26 unset XMODIFIERS
    27 
    28 
    29 ###
    30 ### Interactive sessions (cf. isabelle console)
    31 ###
    32 
    33 ISABELLE_LINE_EDITOR="rlwrap"
    34 
    35 
    36 ###
    37 ### Batch sessions (cf. isabelle build)
    38 ###
    39 
    40 ISABELLE_BUILD_OPTIONS=""
    41 
    42 ISABELLE_BUILD_JAVA_OPTIONS32="-Djava.awt.headless=true -Xms128m -Xmx1024m -Xss1m"
    43 ISABELLE_BUILD_JAVA_OPTIONS64="-Djava.awt.headless=true -Xms512m -Xmx2560m -Xss4m"
    44 
    45 
    46 ###
    47 ### Document preparation (cf. isabelle latex/document)
    48 ###
    49 
    50 ISABELLE_LATEX="latex"
    51 ISABELLE_PDFLATEX="pdflatex"
    52 ISABELLE_BIBTEX="bibtex"
    53 ISABELLE_MAKEINDEX="makeindex"
    54 ISABELLE_EPSTOPDF="epstopdf"
    55 
    56 
    57 ###
    58 ### Misc path settings
    59 ###
    60 
    61 ISABELLE_COMPONENT_REPOSITORY="http://isabelle.in.tum.de/components"
    62 
    63 # The place for user configuration, heap files, etc.
    64 if [ -z "$ISABELLE_IDENTIFIER" ]; then
    65   ISABELLE_HOME_USER="$USER_HOME/.isabelle"
    66 else
    67   ISABELLE_HOME_USER="$USER_HOME/.isabelle/$ISABELLE_IDENTIFIER"
    68 fi
    69 
    70 # Where to look for isabelle tools (multiple dirs separated by ':').
    71 ISABELLE_TOOLS="$ISABELLE_HOME/lib/Tools"
    72 
    73 # Location for temporary files (should be on a local file system).
    74 ISABELLE_TMP_PREFIX="${TMPDIR:-/tmp}/isabelle-$USER"
    75 
    76 # Heap input locations. ML system identifier is included in lookup.
    77 ISABELLE_PATH="$ISABELLE_HOME_USER/heaps:$ISABELLE_HOME/heaps"
    78 
    79 # Heap output location. ML system identifier is appended automatically later on.
    80 ISABELLE_OUTPUT="$ISABELLE_HOME_USER/heaps"
    81 ISABELLE_BROWSER_INFO="$ISABELLE_HOME_USER/browser_info"
    82 
    83 # Site settings check -- just to make it a little bit harder to copy this file verbatim!
    84 [ -n "$ISABELLE_SITE_SETTINGS_PRESENT" ] && \
    85   { echo >&2 "### Isabelle site settings already present!  Maybe copied etc/settings in full?"; }
    86 ISABELLE_SITE_SETTINGS_PRESENT=true
    87 
    88 
    89 ###
    90 ### Default logic
    91 ###
    92 
    93 ISABELLE_LOGIC=HOL
    94 
    95 
    96 ###
    97 ### Docs
    98 ###
    99 
   100 # Where to look for docs (multiple dirs separated by ':').
   101 ISABELLE_DOCS="$ISABELLE_HOME/doc"
   102 
   103 ISABELLE_DOCS_RELEASE_NOTES="ANNOUNCE:README:NEWS:COPYRIGHT:CONTRIBUTORS:contrib/README:src/Tools/jEdit/README:README_REPOSITORY"
   104 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"
   105 
   106 # "open" within desktop environment (potentially asynchronous)
   107 case "$ISABELLE_PLATFORM_FAMILY" in
   108   linux)
   109     ISABELLE_OPEN="xdg-open"
   110     ;;
   111   macos)
   112     ISABELLE_OPEN="open"
   113     ;;
   114   windows)
   115     ISABELLE_OPEN="cygstart"
   116     ;;
   117 esac
   118 
   119 PDF_VIEWER="$ISABELLE_OPEN"
   120 DVI_VIEWER="$ISABELLE_OPEN"
   121 
   122 
   123 ###
   124 ### Rendering information
   125 ###
   126 
   127 ISABELLE_FONTS="$ISABELLE_HOME/lib/fonts/IsabelleText.ttf:$ISABELLE_HOME/lib/fonts/IsabelleTextBold.ttf"
   128 ISABELLE_SYMBOLS="$ISABELLE_HOME/etc/symbols:$ISABELLE_HOME_USER/etc/symbols"
   129 
   130 
   131 ###
   132 ### Misc old-style settings
   133 ###
   134 
   135 # Standard ML of New Jersey (slow!)
   136 #ML_SYSTEM=smlnj-110
   137 #ML_HOME="/usr/local/smlnj/bin"
   138 #ML_OPTIONS="@SMLdebug=/dev/null @SMLalloc=1024"
   139 #ML_PLATFORM=$(eval $("$ML_HOME/.arch-n-opsys" 2>/dev/null); echo "$HEAP_SUFFIX")
   140 #SMLNJ_CYGWIN_RUNTIME=1
   141 
   142 # Misc programming languages
   143 #ISABELLE_GHC="/usr/bin/ghc"
   144 #ISABELLE_OCAML="/usr/bin/ocaml"
   145 #ISABELLE_SWIPL="/usr/bin/swipl"