10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-14 01:53:55 +01:00
quantum_package/setup_environment.sh

20 lines
338 B
Bash
Raw Normal View History

2014-04-01 17:49:29 +02:00
#!/bin/bash
2014-04-03 01:50:22 +02:00
QPACKAGE_ROOT=${PWD}
2014-04-01 17:49:29 +02:00
IRPF90=$(which irpf90)
if [[ -z ${IRPF90} ]] ;
then
make irpf90
2014-04-03 01:50:22 +02:00
IRPF90=${QPACKAGE_ROOT}/irpf90/bin/irpf90
2014-04-01 17:49:29 +02:00
fi
make EZFIO
2014-04-03 01:50:22 +02:00
cat << EOF > quantum_package.rc
2014-04-01 17:49:29 +02:00
export IRPF90=${IRPF90}
2014-04-03 01:50:22 +02:00
export QPACKAGE_ROOT=${QPACKAGE_ROOT}
export PATH+=:${QPACKAGE_ROOT}/scripts
export PATH+=:${QPACKAGE_ROOT}/bin
2014-04-01 17:49:29 +02:00
EOF