lib/Tools/emacs
author wenzelm
Thu, 04 Jun 2009 17:31:38 +0200
changeset 31427 5a07cc86675d
parent 29143 72c960b2b83e
child 34275 8f105e6a2b88
permissions -rwxr-xr-x
reraise exceptions to preserve original position (ML system specific);
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28251
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     1
#!/usr/bin/env bash
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     2
#
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     3
# Author: Makarius
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     4
#
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     5
# DESCRIPTION: Proof General / Emacs interface wrapper
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     6
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     7
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     8
## diagnostics
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     9
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    10
function fail()
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    11
{
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    12
  echo "$1" >&2
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    13
  exit 2
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    14
}
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    15
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    16
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    17
## main
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    18
28509
0ef08aa52f2e extra check of PROOFGENERAL_HOME;
wenzelm
parents: 28251
diff changeset
    19
[ -z "$PROOFGENERAL_HOME" ] && fail "Missing Proof General installation (PROOFGENERAL_HOME)"
0ef08aa52f2e extra check of PROOFGENERAL_HOME;
wenzelm
parents: 28251
diff changeset
    20
28251
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    21
INTERFACE="$PROOFGENERAL_HOME/isar/interface"
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    22
[ ! -x "$INTERFACE" ] && fail "Bad interface script: \"$INTERFACE\""
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    23
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    24
exec "$INTERFACE" "$@"