lib/Tools/emacs
author wenzelm
Sun, 30 Nov 2008 12:58:20 +0100
changeset 28914 f993cbffc42a
parent 28509 0ef08aa52f2e
child 29143 72c960b2b83e
permissions -rwxr-xr-x
default for ISABELLE_HOME_USER is now ~/.isabelle instead of ~/isabelle;

#!/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" "$@"