2015-01-19 16:11:36 +01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Installs irpf90
|
|
|
|
# Mon Jan 12 16:00:20 CET 2015
|
|
|
|
|
|
|
|
BASE="irpf90"
|
2015-04-13 13:21:58 +02:00
|
|
|
URL="https://github.com/LCPQ/${BASE}/archive/master.tar.gz"
|
2015-01-19 16:11:36 +01:00
|
|
|
|
|
|
|
# Check the QPACKAGE_ROOT directory
|
|
|
|
if [[ -z ${QPACKAGE_ROOT} ]]
|
|
|
|
then
|
|
|
|
echo "The QPACKAGE_ROOT environment variable is not set."
|
|
|
|
echo "Please reload the quantum_package.rc file."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd ${QPACKAGE_ROOT}
|
|
|
|
|
|
|
|
|
2015-05-13 15:42:53 +02:00
|
|
|
${QPACKAGE_ROOT}/scripts/install/fetch_from_web.py ${URL} ${QPACKAGE_ROOT}/${BASE}.tar.gz
|
2015-01-19 16:11:36 +01:00
|
|
|
tar -zxf ${BASE}.tar.gz && rm ${BASE}.tar.gz ||exit 1
|
|
|
|
mv ${BASE}-master irpf90
|
2015-06-04 10:57:50 +02:00
|
|
|
make -C irpf90
|
2015-01-19 16:11:36 +01:00
|
|
|
rm -rf -- bin/irpf90 bin/irpman
|
2015-01-19 16:37:29 +01:00
|
|
|
echo '${QPACKAGE_ROOT}/irpf90/bin/irpf90 $@' > bin/irpf90
|
|
|
|
echo '${QPACKAGE_ROOT}/irpf90/bin/irpman $@' > bin/irpman
|
2015-01-19 16:11:36 +01:00
|
|
|
chmod +x bin/irpf90 bin/irpman
|
|
|
|
|
|
|
|
|