summaryrefslogtreecommitdiff
path: root/scripts/ac_build_iraf_pkg
diff options
context:
space:
mode:
authorJames E.H. Turner <jturner@gemini.edu>2016-09-01 15:56:23 -0400
committerJames E.H. Turner <jturner@gemini.edu>2016-09-01 15:56:23 -0400
commitcb4ca53aea434c8fe7c4a071037a6965cb917519 (patch)
tree9ef1625616cb9cf0caebe9d8b752d085b7c6c203 /scripts/ac_build_iraf_pkg
parentba84723b13f8933298b3077a284f1950c5575941 (diff)
downloadastroconda-iraf-helpers-cb4ca53aea434c8fe7c4a071037a6965cb917519.tar.gz
Remove extern.pkg from the build variant, so it doesn't end up in the tarball & overwrite the existing one(s)
Diffstat (limited to 'scripts/ac_build_iraf_pkg')
-rwxr-xr-xscripts/ac_build_iraf_pkg4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/ac_build_iraf_pkg b/scripts/ac_build_iraf_pkg
index 997e266..e5efa13 100755
--- a/scripts/ac_build_iraf_pkg
+++ b/scripts/ac_build_iraf_pkg
@@ -147,6 +147,10 @@ if [ -r "$pkg_omit_list" ]; then
fi
fi
+# Remove extern.pkg from the build variant, so it doesn't end up in the
+# tarball and overwrite the existing one(s):
+rm -f "${PREFIX}/${extern_pkg}" "${PREFIX}/${extpkg_bak}"
+
# Ensure status=0 on reaching the end (& not left over from some condition).
exit 0