lib/Tools/emacs
author wenzelm
Tue, 16 Sep 2008 17:18:41 +0200
changeset 28251 679ce6137211
child 28509 0ef08aa52f2e
permissions -rwxr-xr-x
Proof General / Emacs interface wrapper;
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
# $Id$
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     4
# Author: Makarius
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     5
#
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     6
# DESCRIPTION: Proof General / Emacs interface wrapper
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     7
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     8
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
     9
## diagnostics
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    10
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    11
function fail()
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    12
{
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    13
  echo "$1" >&2
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    14
  exit 2
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
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    18
## main
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    19
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    20
INTERFACE="$PROOFGENERAL_HOME/isar/interface"
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    21
[ ! -x "$INTERFACE" ] && fail "Bad interface script: \"$INTERFACE\""
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    22
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    23
exec "$INTERFACE" "$@"