author | wenzelm |
Tue, 21 Oct 2008 20:18:07 +0200 | |
changeset 28650 | a7ba12e0d3b7 |
parent 28649 | 58ab885469f5 |
child 29143 | 72c960b2b83e |
permissions | -rwxr-xr-x |
28649 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
3 |
# $Id$ |
|
4 |
# Author: Makarius |
|
5 |
# |
|
6 |
# DESCRIPTION: Isabelle/jEdit interface wrapper |
|
7 |
||
8 |
||
9 |
## diagnostics |
|
10 |
||
11 |
function fail() |
|
12 |
{ |
|
13 |
echo "$1" >&2 |
|
14 |
exit 2 |
|
15 |
} |
|
16 |
||
17 |
||
18 |
## main |
|
19 |
||
20 |
[ -z "$JEDIT_HOME" ] && fail "Missing Isabelle/jEdit installation (JEDIT_HOME)" |
|
21 |
||
22 |
INTERFACE="$JEDIT_HOME/interface" |
|
23 |
[ ! -x "$INTERFACE" ] && fail "Bad interface script: \"$INTERFACE\"" |
|
24 |
||
25 |
exec "$INTERFACE" "$@" |