lib/Tools/emacs
author wenzelm
Sat Jul 25 10:31:27 2009 +0200 (2009-07-25)
changeset 32187 cca43ca13f4f
parent 29143 72c960b2b83e
child 34275 8f105e6a2b88
permissions -rwxr-xr-x
renamed structure Display_Goal to Goal_Display;
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@28251
    24
exec "$INTERFACE" "$@"