aboutsummaryrefslogtreecommitdiff
path: root/unix/reboot
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /unix/reboot
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'unix/reboot')
-rwxr-xr-xunix/reboot26
1 files changed, 26 insertions, 0 deletions
diff --git a/unix/reboot b/unix/reboot
new file mode 100755
index 00000000..bdc99b41
--- /dev/null
+++ b/unix/reboot
@@ -0,0 +1,26 @@
+#!/bin/sh
+# REBOOT -- Bootstrap IRAF. The HSI system may be booted either of two ways,
+# VOS or NOVOS. Booting VOS gives the HSI utility programs the ability to
+# deal with VOS filename mapping, but requires the VOS system libraries libsys
+# and libos. A NOVOS HSI is standalone. The procedure to build IRAF from
+# only the sources is to boot NOVOS, compile the VOS system libraries with
+# mkpkg, and then rebuild the HSI VOS.
+#
+# External dependencies: "iraf" should be defined in the user's environment
+# before running this script. This is normally done by sourcing the iraf/local
+# .login file (which is automatic if the reboot is performed using the iraf
+# account).
+
+source hlib/irafuser.sh
+
+/bin/echo "iraf = $iraf"
+/bin/echo "mach = $MACH"
+/bin/echo "HSI_CF = $HSI_CF"
+/bin/echo "HSI_LIBS = $HSI_LIBS"
+
+if [ "`echo $HSI_CF | grep NOVOS`" != "" ]; then
+ echo "HSI is being built NOVOS, should be rebuilt once VOS is compiled"
+fi
+
+/bin/echo "---------------------- REBOOT -----------------------"
+sh -x mkpkg.sh