build
changeset 2789 69cf3aea45ee
parent 2781 0d6fcae3ae45
child 2879 477bfcb022d8
--- a/build	Tue Mar 11 16:38:53 1997 +0100
+++ b/build	Tue Mar 11 16:39:20 1997 +0100
@@ -4,26 +4,37 @@
 #
 # build - compile parts of the Isabelle system
 
+## args
 
-LOGICS="Pure $*"
-
-ISATOOL=$PWD/bin/isatool
+LOGICS="$*"
 
 
-## tell the user about current settings
+## settings
+
+PRG=$(basename $0)
 
-FILES=./etc/settings
+ISABELLE_HOME=$(dirname $0)
+. $ISABELLE_HOME/lib/scripts/getsettings || \
+  { echo "$PRG probably not called from its original place!"; exit 2 }
 
-USER_SETTINGS=$($ISATOOL getenv -b ISABELLE_HOME_USER)/etc/settings
-[ -f $USER_SETTINGS ] && FILES="$FILES and $USER_SETTINGS"
+
+## tell the user about current values
 
 echo
-echo "Please check $FILES"
+echo "Please check $ISABELLE_HOME/etc/settings"
+[ -f $ISABELLE_HOME_USER/etc/settings ] && echo "AND $ISABELLE_HOME_USER/etc/settings"
 echo "to make sure that Isabelle's ML system settings are appropriate."
 echo "Your current values are:"
 echo
 
-$ISATOOL getenv ML_SYSTEM ML_HOME ML_OPTIONS
+echo "ML_SYSTEM=$ML_SYSTEM"
+echo "ML_HOME=$ML_HOME"
+echo "ML_OPTIONS=$ML_OPTIONS"
+
+
+## build it
+
+LOGICS="Pure $DEFAULT_LOGIC $LOGICS"
 
 echo
 echo
@@ -31,11 +42,9 @@
 read
 
 
-## build it
-
 export THIS_IS_ISABELLE_BUILD=true
 
 for DIR in $LOGICS
 do
-  ( cd src/$DIR; $ISATOOL make)
+  ( cd $ISABELLE_HOME/src/$DIR; $ISATOOL make)
 done