lib/Tools/emacs
author wenzelm
Thu, 12 Mar 2009 21:55:02 +0100
changeset 30487 a14ff49d3083
parent 29143 72c960b2b83e
child 34275 8f105e6a2b88
permissions -rwxr-xr-x
simplified preparation and outer parsing of specification; export extern cmd interfaces as well;

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: Proof General / Emacs interface wrapper


## diagnostics

function fail()
{
  echo "$1" >&2
  exit 2
}


## main

[ -z "$PROOFGENERAL_HOME" ] && fail "Missing Proof General installation (PROOFGENERAL_HOME)"

INTERFACE="$PROOFGENERAL_HOME/isar/interface"
[ ! -x "$INTERFACE" ] && fail "Bad interface script: \"$INTERFACE\""

exec "$INTERFACE" "$@"