9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-25 13:03:28 +01:00

Update config files

This commit is contained in:
Anthony Scemama 2020-02-21 11:28:18 +01:00
parent e675192775
commit 656d8c2365
2 changed files with 21 additions and 8 deletions

View File

@ -1,10 +1,18 @@
# Configuration of IRPF90 package # Configuration of IRPF90 package
# Set the path of IRPF90 here: IRPF90=$(command -v irpf90)
export IRPF90_PATH=${QP_ROOT}/external/irpf90-v1.7.6
export PATH=${PATH}:${IRPF90_PATH}/bin if [[ ${IRPF90}.x == ".x" ]] ; then
IRPF90=${IRPF90_PATH}/bin/irpf90
IRPF90_PATH=${QP_ROOT}/external/irpf90-v1.7.6
export PATH=${PATH}:${IRPF90_PATH}/bin
else
IRPF90_PATH=$(command -v irpf90 | xargs dirname | xargs dirname)
fi
export IRPF90
export IRPF90_PATH
export IRPF90=${IRPF90_PATH}/bin/irpf90
function source_if_exists() { function source_if_exists() {
if [[ -f $1 ]]; then if [[ -f $1 ]]; then

View File

@ -1,13 +1,18 @@
# Configuration for the Ninja package # Configuration for the Ninja package
export NINJA=${QP_ROOT}/bin/ninja NINJA=$(command -v ninja)
if [[ ${NINJA}.x == ".x" ]] ; then
NINJA=${QP_ROOT}/bin/ninja
fi
export NINJA
function ninja () { function ninja () {
if [[ -f ${QP_ROOT}/build.ninja ]] ; then if [[ -f ${QP_ROOT}/build.ninja ]] ; then
${QP_ROOT}/bin/ninja "$@" ${QP_ROOT}/bin/ninja "$@"
else else
>&2 echo "Error: build.ninja does not exists. >&2 echo "Error: build.ninja does not exists.
You need to run ./configure first." You need to run ./configure first."
fi fi
} }