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
|
|
|
|
|
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}
|
2014-04-04 00:41:43 +02:00
|
|
|
export PATH+=:\${QPACKAGE_ROOT}/scripts
|
|
|
|
export PATH+=:\${QPACKAGE_ROOT}/bin
|
2014-04-01 17:49:29 +02:00
|
|
|
EOF
|
2014-04-04 00:41:43 +02:00
|
|
|
|
|
|
|
source quantum_package.rc
|
|
|
|
make EZFIO
|