aboutsummaryrefslogtreecommitdiff
path: root/iraf.stsdas/ur_mkpkg_cmd
diff options
context:
space:
mode:
authorJames E.H. Turner <jturner@gemini.edu>2016-09-29 20:00:15 -0400
committerJames E.H. Turner <jturner@gemini.edu>2016-09-29 20:00:15 -0400
commit708688dfa7293de3f7a93192a19721580fc54c84 (patch)
tree83aac6442e4e75ce2de4f2b354232eab21ab1a00 /iraf.stsdas/ur_mkpkg_cmd
parenta32e82dd68e48216723ab26caeca2d07efc52aa6 (diff)
downloadastroconda-iraf-708688dfa7293de3f7a93192a19721580fc54c84.tar.gz
Add STSDAS package.
Diffstat (limited to 'iraf.stsdas/ur_mkpkg_cmd')
-rw-r--r--iraf.stsdas/ur_mkpkg_cmd44
1 files changed, 44 insertions, 0 deletions
diff --git a/iraf.stsdas/ur_mkpkg_cmd b/iraf.stsdas/ur_mkpkg_cmd
new file mode 100644
index 0000000..2554a0b
--- /dev/null
+++ b/iraf.stsdas/ur_mkpkg_cmd
@@ -0,0 +1,44 @@
+# In Ureka, this script used to call make_all from the stsci_iraf tarball but
+# in AstroConda, the applicable parts of make_all are instead included here, to
+# accommodate stsci_iraf being split into separate conda packages:
+
+status=0
+
+#ls -la
+pwd
+
+# Execute the build:
+echo report: STSDAS
+mkpkg $IRAFARCH || status=1
+mkpkg -p tables -p stsdas update || status=1
+chmod g+r */*.e || status=1
+
+# Do the additional steps from the tarball's make_all:
+echo report: STSDAS READ DATA FILES
+cd build_check # created by build.sh in iraf.stsdas
+rm -rf iraf
+mkdir iraf
+cd iraf
+echo xterm | mkiraf > mkiraf_tmp 2>&1
+sed 's/^/report: /' < mkiraf_tmp
+touch .hushiraf
+cl > tmp << ARF
+stsdas
+fitsio
+cd stsdas
+cd data/fits
+cl < read_fits.cl
+logout
+ARF
+cd ..
+grep -v -f read_data_files.grep < iraf/tmp > result || status=1
+diff -b read_data_files.expect result || status=1
+
+# Proprietary code now gets removed by build_iraf_package. For stsci_iraf the
+# conda recipe copies the (separately-maintained) list to the right place first.
+
+# Tidy up a bit (unless something failed detectably):
+[ $status = 0 ] && rm -fr iraf/
+
+exit $status
+