summaryrefslogtreecommitdiff
path: root/etc/hstdp-2018.3a
diff options
context:
space:
mode:
Diffstat (limited to 'etc/hstdp-2018.3a')
-rw-r--r--etc/hstdp-2018.3a/pkgs/002-hstcal.sh14
-rwxr-xr-xetc/hstdp-2018.3a/tasks/002-python-packages.sh4
2 files changed, 10 insertions, 8 deletions
diff --git a/etc/hstdp-2018.3a/pkgs/002-hstcal.sh b/etc/hstdp-2018.3a/pkgs/002-hstcal.sh
index 8b4ab4f..fe45351 100644
--- a/etc/hstdp-2018.3a/pkgs/002-hstcal.sh
+++ b/etc/hstdp-2018.3a/pkgs/002-hstcal.sh
@@ -3,14 +3,16 @@ name=hstcal
version=2.2.0
url="https://github.com/spacetelescope/${name}"
+# Grab a version of WAF that isn't broken
+curl -o waf https://waf.io/waf-2.0.12
+chmod +x waf
+
git clone "${url}"
pushd "${name}" &>/dev/null
- # Grab a version of WAF that isn't broken
- curl -o waf https://waf.io/waf-2.0.12
- chmod +x waf
+ git checkout "${version}"
# Build / Install
- ./waf configure --prefix=${PREFIX} --release-with-symbols --with-cfitsio=${PREFIX}
- ./waf build
- ./waf install
+ ../waf configure --prefix=${PREFIX} --release-with-symbols --with-cfitsio=${PREFIX}
+ ../waf build
+ ../waf install
popd &>/dev/null
diff --git a/etc/hstdp-2018.3a/tasks/002-python-packages.sh b/etc/hstdp-2018.3a/tasks/002-python-packages.sh
index 3d89b6a..33714aa 100755
--- a/etc/hstdp-2018.3a/tasks/002-python-packages.sh
+++ b/etc/hstdp-2018.3a/tasks/002-python-packages.sh
@@ -33,8 +33,8 @@ function build()
function post()
{
rm -rf ~/.cache/pip
- [[ -d src ]] && rm -rf src
- [[ -f gmon.out ]] && rm -rf gmon.out
+ [[ -d src ]] && rm -rf src || true
+ [[ -f gmon.out ]] && rm -rf gmon.out || true
}
build