diff options
author | James E.H. Turner <jturner@gemini.edu> | 2016-10-17 15:11:06 -0400 |
---|---|---|
committer | James E.H. Turner <jturner@gemini.edu> | 2016-10-17 15:11:06 -0400 |
commit | 191b5a1b3216f5f6910a1dbf890e867b3e288266 (patch) | |
tree | a47b1e12914b8f6e1ef9689fc009586baa1c9e4c /iraf.stsdas/build.sh | |
parent | bac65ee7b0f73531047e395bd2ade806c2bfd208 (diff) | |
parent | f78a281784e8d1ab66a32fffdb19d3de50cf5c69 (diff) | |
download | astroconda-iraf-191b5a1b3216f5f6910a1dbf890e867b3e288266.tar.gz |
Merge selected recipes from iraf-build-james branch of astroconda-contrib
Diffstat (limited to 'iraf.stsdas/build.sh')
-rw-r--r-- | iraf.stsdas/build.sh | 22 |
1 files changed, 22 insertions, 0 deletions
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 + |