lib/Tools/emacs
author wenzelm
Mon, 06 Oct 2008 22:35:03 +0200
changeset 28509 0ef08aa52f2e
parent 28251 679ce6137211
child 29143 72c960b2b83e
permissions -rwxr-xr-x
extra check of PROOFGENERAL_HOME;

#!/usr/bin/env bash
#
# $Id$
# 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" "$@"