mirror of
https://gitlab.com/scemama/qmcchem.git
synced 2024-11-18 12:03:39 +01:00
25 lines
511 B
Bash
Executable File
25 lines
511 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -u
|
|
QMCCHEM_PATH=$PWD
|
|
mkdir -p "${QMCCHEM_PATH}"/bin
|
|
cd "${QMCCHEM_PATH}"/install
|
|
mkdir -p Downloads _build
|
|
# TODO : Check if network is up (ping)
|
|
if [[ ! -x "${QMCCHEM_PATH}"/bin/ninja ]]
|
|
then
|
|
echo "Installing Ninja"
|
|
./scripts/install_ninja.sh &> _build/ninja.log
|
|
if [[ ! -x "${QMCCHEM_PATH}"/bin/ninja ]]
|
|
then
|
|
echo "Installation of Ninja failed"
|
|
exit 1
|
|
fi
|
|
touch _build/ninja.ok
|
|
fi
|
|
touch "${QMCCHEM_PATH}"/{src,ocaml}/ls_md5
|
|
exec "${QMCCHEM_PATH}"/bin/ninja "$@"
|
|
|
|
|