*** empty log message ***
[h316.git] / bin / fboot
index 9e43a5c9ea066a95682ae474b1e4db9a9d5538f2..12c58efcafe83ac99edcdaedafa96e2ab7a1edf9 100755 (executable)
--- a/bin/fboot
+++ b/bin/fboot
@@ -6,19 +6,25 @@ if [ ! $1 ] ; then
     exit 2
 fi
 
+
+if [ ! "$H316" ]; then
+    echo "H316 variable not set!"
+    exit 2
+fi
+
+if [ ! -e "$H316/config/libs.config" ]; then
+    echo "H316/config/libs.config not found!"
+    exit 2
+else
+    source "$H316/config/libs.config"
+fi
+
 objname=$1
 locname=`basename $1 .obj`
 
 echo $locname
 echo $objname
 
-LIBS="$H316/lib/fortran/lib/flib1.lib\
-       $H316/lib/fortran/lib/flib2.lib\
-       $H316/lib/fortran/lib/flib3.lib\
-       $H316/lib/iolib/lib/io.lib
-"
-
-
 cat > $locname.go <<EOF
 rest $H316/sys/super3.sys
 at ptr $objname
@@ -27,7 +33,7 @@ go
 e p
 EOF
 
-for library in $LIBS; do
+for library in $LOAD_LIBS; do
     if [ ! -e "$library" ]; then
        echo "Error: $library not found!"
        exit 3;