lib/Tools/emacs
author haftmann
Tue, 09 Aug 2011 20:24:48 +0200
changeset 44106 0e018cbcc0de
parent 34275 8f105e6a2b88
child 57414 fe1be2844fda
permissions -rwxr-xr-x
tuned proofs
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
34275
8f105e6a2b88 recovered legacy settings for Proof General 3.x;
wenzelm
parents: 29143
diff changeset
    24
#legacy settings
8f105e6a2b88 recovered legacy settings for Proof General 3.x;
wenzelm
parents: 29143
diff changeset
    25
export ISABELLE="$ISABELLE_PROCESS"
8f105e6a2b88 recovered legacy settings for Proof General 3.x;
wenzelm
parents: 29143
diff changeset
    26
export ISATOOL="$ISABELLE_TOOL"
8f105e6a2b88 recovered legacy settings for Proof General 3.x;
wenzelm
parents: 29143
diff changeset
    27
28251
679ce6137211 Proof General / Emacs interface wrapper;
wenzelm
parents:
diff changeset
    28
exec "$INTERFACE" "$@"