2015-12-18 22:25:32 +01:00
|
|
|
#!/bin/bash -x
|
|
|
|
|
|
|
|
set -u
|
|
|
|
set -e
|
|
|
|
|
|
|
|
TARGET=ninja
|
|
|
|
URL="http://github.com/martine/ninja/archive/v1.5.3.tar.gz"
|
|
|
|
|
|
|
|
function _install()
|
|
|
|
{
|
2015-12-18 22:53:27 +01:00
|
|
|
cd .. ; QMCCHEM_PATH="$PWD" ; cd -
|
2015-12-18 22:25:32 +01:00
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
cd "${BUILD}"
|
|
|
|
./configure.py --bootstrap
|
|
|
|
cd -
|
2015-12-18 22:53:27 +01:00
|
|
|
mv "${BUILD}/ninja" "${QMCCHEM_PATH}"/bin/
|
2015-12-18 22:25:32 +01:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
if [[ ! -f "Downloads/${TARGET}.tar.gz" ]]
|
|
|
|
then
|
2016-01-11 17:27:34 +01:00
|
|
|
wget ${URL} -O "Downloads/${TARGET}.tar.gz.tmp"
|
|
|
|
mv "Downloads/${TARGET}.tar.gz"{.tmp,}
|
2015-12-18 22:25:32 +01:00
|
|
|
fi
|
|
|
|
source scripts/build.sh
|
|
|
|
|