mirror of
https://gitlab.com/scemama/qmcchem.git
synced 2024-08-29 14:23:42 +02:00
28 lines
487 B
Bash
Executable File
28 lines
487 B
Bash
Executable File
#!/bin/bash -x
|
|
|
|
set -u
|
|
set -e
|
|
|
|
TARGET=ninja
|
|
URL="https://github.com/martine/ninja/archive/v1.5.3.tar.gz"
|
|
|
|
function _install()
|
|
{
|
|
cd .. ; QMCCHEM_PATH="$PWD" ; cd -
|
|
set -e
|
|
set -u
|
|
cd "${BUILD}"
|
|
./configure.py --bootstrap
|
|
cd -
|
|
mv "${BUILD}/ninja" "${QMCCHEM_PATH}"/bin/
|
|
return 0
|
|
}
|
|
|
|
if [[ ! -f "Downloads/${TARGET}.tar.gz" ]]
|
|
then
|
|
wget --no-check-certificate ${URL} -O "Downloads/${TARGET}.tar.gz.tmp"
|
|
mv "Downloads/${TARGET}.tar.gz"{.tmp,}
|
|
fi
|
|
source scripts/build.sh
|
|
|