diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /util/mkup | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
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 |