9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-07 22:13:38 +01:00
qp2/etc/irpf90.rc

28 lines
575 B
Plaintext
Raw Normal View History

2019-01-25 11:39:31 +01:00
# Configuration of IRPF90 package
2020-02-24 20:02:09 +01:00
IRPF90=${IRPF90:-$(command -v irpf90)}
2020-02-21 11:28:18 +01:00
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
2019-01-25 11:39:31 +01:00
function source_if_exists() {
if [[ -f $1 ]]; then
cd $(dirname $1) ; source $(basename $1) ; cd -
fi &> /dev/null
2020-03-17 16:39:43 +01:00
}
2019-01-25 11:39:31 +01:00
source ${QP_ROOT}/etc/autocomplete.rc
source_if_exists "${IRPF90_PATH}/irpman-completions.bash"
2020-03-17 16:39:43 +01:00
2019-01-25 11:39:31 +01:00