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
|
|
|
|
2015-06-08 14:49:10 +02:00
|
|
|
if [[ -z ${QP_ROOT} ]]
|
2014-11-04 01:03:50 +01:00
|
|
|
then
|
2015-06-08 14:49:10 +02:00
|
|
|
print "The QP_ROOT environment variable is not set."
|
2014-11-04 01:03:50 +01:00
|
|
|
print "Please reload the quantum_package.rc file."
|
|
|
|
fi
|
|
|
|
|
2015-06-08 14:49:10 +02:00
|
|
|
cd -- ${QP_ROOT}
|
|
|
|
mv -f -- ${QP_ROOT}/irpf90 ${QP_ROOT}/irpf90.old
|
2014-11-04 01:03:50 +01:00
|
|
|
|
2015-06-08 14:49:10 +02:00
|
|
|
${QP_ROOT}/scripts/install/install_irpf90.sh
|
2014-11-04 01:03:50 +01:00
|
|
|
|
|
|
|
if [[ $? -eq 0 ]]
|
|
|
|
then
|
2015-06-08 14:49:10 +02:00
|
|
|
rm -rf -- ${QP_ROOT}/irpf90.old
|
2014-11-04 01:03:50 +01:00
|
|
|
echo "Successfully updated IRPF90"
|
|
|
|
else
|
2015-06-08 14:49:10 +02:00
|
|
|
rm -rf -- ${QP_ROOT}/irpf90
|
|
|
|
mv -- ${QP_ROOT}/irpf90.old ${QP_ROOT}/irpf90
|
2014-11-04 01:03:50 +01:00
|
|
|
echo "Failed to update IRPF90"
|
|
|
|
fi
|