aboutsummaryrefslogtreecommitdiffhomepage
path: root/isar/interface
diff options
context:
space:
mode:
authorGravatar Makarius Wenzel <makarius@sketis.net>2000-09-17 11:43:09 +0000
committerGravatar Makarius Wenzel <makarius@sketis.net>2000-09-17 11:43:09 +0000
commit554ff827aa3c6735f9d444ba015bb46086f0bd0d (patch)
tree4aa7c8f9e96a3f89b5a1afc913b95b413a1c57bc /isar/interface
parentc2db763cedc7ff4551c784235b215ac8e103f792 (diff)
-I option for Isar vs. classic Isabelle mode;
tuned;
Diffstat (limited to 'isar/interface')
-rw-r--r--isar/interface38
1 files changed, 27 insertions, 11 deletions
diff --git a/isar/interface b/isar/interface
index 21c2d83a..97aa607f 100644
--- a/isar/interface
+++ b/isar/interface
@@ -2,26 +2,36 @@
#
# $Id$
#
-# Proof General interface wrapper for Isabelle/Isar.
+# Proof General interface wrapper for Isabelle.
+## self references
-## diagnostics
+KIND=$(basename $(dirname "$0"))
+export PROOFGENERAL_HOME=$(cd $(dirname "$0"); cd ..; echo "$PWD")
-PRG=$(basename "$0")
+if [ "$KIND" = isar ]; then
+ ISAR=true
+else
+ ISAR=false
+fi
+
+
+## diagnostics
function usage()
{
echo
- echo "Usage: $PRG [OPTIONS] [FILES ...]"
+ echo "Usage: Isabelle [OPTIONS] [FILES ...]"
echo
echo " Options are:"
+ echo " -I BOOL use Isabelle/Isar instead of classic Isabelle (default $ISAR)"
echo " -l NAME logic image name (default \$ISABELLE_LOGIC=$ISABELLE_LOGIC)"
echo " -p NAME Emacs program name (default xemacs)"
- echo " -u BOOL use .emacs file (default true)"
+ echo " -u BOOL use personal .emacs file (default true)"
echo " -w BOOL use window system (default true)"
echo " -x BOOL enable x-symbol package"
echo
- echo "Starts Proof General for Isabelle/Isar with proof documents FILES"
+ echo "Starts Proof General for Isabelle with theory and proof FILES"
echo "(default Scratch.thy)."
echo
echo " PROOFGENERAL_OPTIONS=$PROOFGENERAL_OPTIONS"
@@ -38,9 +48,6 @@ function fail()
## process command line
-export PROOFGENERAL_HOME=$(cd $(dirname "$0"); cd ..; echo "$PWD")
-
-
# options
LOGIC="$ISABELLE_LOGIC"
@@ -52,9 +59,12 @@ XSYMBOL=""
function getoptions()
{
OPTIND=1
- while getopts "l:p:u:w:x:" OPT
+ while getopts "I:l:p:u:w:x:" OPT
do
case "$OPT" in
+ I)
+ ISAR="$OPTARG"
+ ;;
l)
LOGIC="$OPTARG"
;;
@@ -82,6 +92,12 @@ getoptions $PROOFGENERAL_OPTIONS
getoptions "$@"
shift $(($OPTIND - 1))
+if [ "$ISAR" = true ]; then
+ KIND=isar
+else
+ KIND=isa
+fi
+
# args
@@ -115,7 +131,7 @@ done
[ -n "$XSYMBOL_INSTALLFONTS" ] && "$ISATOOL" installfonts -x
-export PROOFGENERAL_ASSISTANTS=isar
+export PROOFGENERAL_ASSISTANTS="$KIND"
export PROOFGENERAL_LOGIC="$LOGIC"
export PROOFGENERAL_XSYMBOL="$XSYMBOL"