lib/Tools/emacs
author blanchet
Wed May 21 14:09:42 2014 +0200 (2014-05-21)
changeset 57037 c51132be8e16
parent 34275 8f105e6a2b88
child 57414 fe1be2844fda
permissions -rwxr-xr-x
avoid markup-generating @{make_string}
wenzelm@28251
     1
#!/usr/bin/env bash
wenzelm@28251
     2
#
wenzelm@28251
     3
# Author: Makarius
wenzelm@28251
     4
#
wenzelm@28251
     5
# DESCRIPTION: Proof General / Emacs interface wrapper
wenzelm@28251
     6
wenzelm@28251
     7
wenzelm@28251
     8
## diagnostics
wenzelm@28251
     9
wenzelm@28251
    10
function fail()
wenzelm@28251
    11
{
wenzelm@28251
    12
  echo "$1" >&2
wenzelm@28251
    13
  exit 2
wenzelm@28251
    14
}
wenzelm@28251
    15
wenzelm@28251
    16
wenzelm@28251
    17
## main
wenzelm@28251
    18
wenzelm@28509
    19
[ -z "$PROOFGENERAL_HOME" ] && fail "Missing Proof General installation (PROOFGENERAL_HOME)"
wenzelm@28509
    20
wenzelm@28251
    21
INTERFACE="$PROOFGENERAL_HOME/isar/interface"
wenzelm@28251
    22
[ ! -x "$INTERFACE" ] && fail "Bad interface script: \"$INTERFACE\""
wenzelm@28251
    23
wenzelm@34275
    24
#legacy settings
wenzelm@34275
    25
export ISABELLE="$ISABELLE_PROCESS"
wenzelm@34275
    26
export ISATOOL="$ISABELLE_TOOL"
wenzelm@34275
    27
wenzelm@28251
    28
exec "$INTERFACE" "$@"