diff options
Diffstat (limited to 'util/mkup')
-rwxr-xr-x | util/mkup | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/util/mkup b/util/mkup new file mode 100755 index 00000000..9867caad --- /dev/null +++ b/util/mkup @@ -0,0 +1,41 @@ +#!/bin/bash +# + +# Initialize the $iraf and environment. +if [ -z "$iraf" ]; then + if [ -e "$FAKEHOME/setup.sh" ]; then + source $FAKEHOME/setup.sh + else + source unix/hlib/setup.sh + fi +else + source $iraf/unix/hlib/setup.sh +fi + +source $iraf/unix/hlib/irafuser.sh + +# Reconfigure the system for the proper architecture if needed. +if [ -n "$IRAFARCH" ]; then # use environment value + make $IRAFARCH +else # use actual value + arch=`$iraf/unix/hlib/irafarch.sh -actual` + cfgarch=`mkpkg arch | sed -e "s/system is configured for //g"` + if [ $cfgarch != $arch ]; then + #make $arch + /bin/echo "Warning: current arch="$cfgarch" but system arch="$arch + export IRAFARCH=$arch + fi +fi + +cd $iraf/ # build core system +mkpkg +mkpkg update + +cd $iraf/noao # build NOAO package +export noao=`pwd`/ +mkpkg -p noao + +cd $iraf/vo # build VO package +export vo=`pwd`/ +cd votools # build VOTOOLS package +mkpkg -p vo update |