mirror of
https://gitlab.com/scemama/qmcchem.git
synced 2024-11-15 18:43:39 +01:00
26 lines
365 B
Bash
26 lines
365 B
Bash
|
#!/bin/bash -x
|
||
|
|
||
|
set -u
|
||
|
set -e
|
||
|
|
||
|
TARGET=ninja
|
||
|
URL="http://github.com/martine/ninja/archive/v1.5.3.tar.gz"
|
||
|
|
||
|
function _install()
|
||
|
{
|
||
|
set -e
|
||
|
set -u
|
||
|
cd "${BUILD}"
|
||
|
./configure.py --bootstrap
|
||
|
cd -
|
||
|
mv "${BUILD}/ninja" ../bin/
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
if [[ ! -f "Downloads/${TARGET}.tar.gz" ]]
|
||
|
then
|
||
|
wget ${URL} -O "Downloads/${TARGET}.tar.gz"
|
||
|
fi
|
||
|
source scripts/build.sh
|
||
|
|