10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-03 20:54:00 +01:00

Update install irp

This commit is contained in:
Thomas Applencourt 2015-06-24 11:58:21 +02:00
parent 6cf02c1616
commit 5b708a5225
2 changed files with 11 additions and 3 deletions

2
configure vendored
View File

@ -201,7 +201,7 @@ def checking(d_dependency):
a = check_output(["which", binary])
if binary == "irpf90":
version = check_output("bash irpf90 -v".split())
version = check_output("irpf90 -v".split()).strip()
from distutils.version import LooseVersion
if LooseVersion(version) < LooseVersion("1.6.7"):

View File

@ -13,8 +13,16 @@ function _install()
[[ -x ./irpf90/bin/irpf90 ]] || return 1
[[ -x ./irpf90/bin/irpman ]] || return 1
rm -rf -- ../bin/irpf90 ../bin/irpman
echo 'exec ${QP_ROOT}/install/irpf90/bin/irpf90 $@' > ../bin/irpf90 || return 1
echo 'exec ${QP_ROOT}/install/irpf90/bin/irpman $@' > ../bin/irpman || return 1
cat << EOF > ../bin/irpf90 || return 1
#!/bin/bash
exec \${QP_ROOT}/install/irpf90/bin/irpf90 \$@
EOF
cat << EOF > ../bin/irpman || return 1
#!/bin/bash
exec \${QP_ROOT}/install/irpf90/bin/irpman \$@
EOF
chmod +x ../bin/irpf90 ../bin/irpman || return 1
return 0
}