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