#!/bin/bash -e name=hstcal version=2.3.1 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 git checkout "${version}" # Build / Install ../waf configure --prefix=${PREFIX} --release-with-symbols --with-cfitsio=${PREFIX} ../waf build ../waf install popd &>/dev/null