aboutsummaryrefslogtreecommitdiff
path: root/iraf.tables/build.sh
diff options
context:
space:
mode:
authorJames E.H. Turner <jturner@gemini.edu>2016-09-06 15:47:56 -0400
committerJames E.H. Turner <jturner@gemini.edu>2016-09-06 15:47:56 -0400
commit761c66b60631b1b2b74ddf44b277ea904a87fd3e (patch)
tree7f911cf104995ea79ef3d137d897fc623e609a8e /iraf.tables/build.sh
parent94daaa0781d856cb8b47f06b61d343addee3cfc1 (diff)
downloadastroconda-iraf-761c66b60631b1b2b74ddf44b277ea904a87fd3e.tar.gz
Add a prototype external IRAF package (TABLES) for AstroConda.
Diffstat (limited to 'iraf.tables/build.sh')
-rw-r--r--iraf.tables/build.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/iraf.tables/build.sh b/iraf.tables/build.sh
new file mode 100644
index 0000000..58cd9c8
--- /dev/null
+++ b/iraf.tables/build.sh
@@ -0,0 +1,17 @@
+name=tables
+
+# 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
+
+# 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
+