2015-03-25 11:42:15 +01:00
|
|
|
#!/bin/bash
|
2014-11-04 01:03:50 +01:00
|
|
|
#
|
|
|
|
# Upgrades IRPF90 from the web.
|
2015-03-25 11:42:15 +01:00
|
|
|
# Wed Mar 25 11:41:04 CET 2015
|
2014-11-04 01:03:50 +01:00
|
|
|
|
|
|
|
if [[ -z ${QPACKAGE_ROOT} ]]
|
|
|
|
then
|
|
|
|
print "The QPACKAGE_ROOT environment variable is not set."
|
|
|
|
print "Please reload the quantum_package.rc file."
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd -- ${QPACKAGE_ROOT}
|
2015-03-25 11:42:15 +01:00
|
|
|
mv -f -- ${QPACKAGE_ROOT}/irpf90 ${QPACKAGE_ROOT}/irpf90.old
|
2014-11-04 01:03:50 +01:00
|
|
|
|
2015-03-25 11:42:15 +01:00
|
|
|
${QPACKAGE_ROOT}/scripts/install_irpf90.sh
|
2014-11-04 01:03:50 +01:00
|
|
|
|
|
|
|
if [[ $? -eq 0 ]]
|
|
|
|
then
|
|
|
|
rm -rf -- ${QPACKAGE_ROOT}/irpf90.old
|
|
|
|
echo "Successfully updated IRPF90"
|
|
|
|
else
|
|
|
|
rm -rf -- ${QPACKAGE_ROOT}/irpf90
|
|
|
|
mv -- ${QPACKAGE_ROOT}/irpf90.old ${QPACKAGE_ROOT}/irpf90
|
|
|
|
echo "Failed to update IRPF90"
|
|
|
|
fi
|