From 708688dfa7293de3f7a93192a19721580fc54c84 Mon Sep 17 00:00:00 2001 From: "James E.H. Turner" Date: Thu, 29 Sep 2016 21:00:15 -0300 Subject: Add STSDAS package. --- iraf.stsdas/build.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 iraf.stsdas/build.sh (limited to 'iraf.stsdas/build.sh') diff --git a/iraf.stsdas/build.sh b/iraf.stsdas/build.sh new file mode 100644 index 0000000..c5b339c --- /dev/null +++ b/iraf.stsdas/build.sh @@ -0,0 +1,22 @@ +name=stsdas + +# Configure the environment for IRAF, since conda build appears not to do +# "source activate" after installing dependencies (this would instead need to +# eval $PREFIX/iraf/unix/hlib/setup directly if "--level" needs specifying): +. setup_iraf.sh + +# Copy list of proprietary files to remove, from ../stsci_iraf/release_tools +# (conda build stops if this fails, due to "set -e"): +sed -ne "s|^$name/||p" release_tools/numrec_list.txt > $name/numrec_list.txt + +# Copy a couple of files used by the build into the package dir: +mkdir -p $name/build_check +cp -p release_tools/read_data_files.grep $name/build_check/ +cp -p release_tools/read_data_files.expect $name/build_check/ + +# Change to the package subdir (special case for STScI IRAF): +cd $name + +# Build from source in envs/_build (using build script from astroconda-utils): +ac_build_iraf_pkg + -- cgit