mirror of
https://github.com/LCPQ/quantum_package
synced 2024-12-22 12:23:48 +01:00
Update install irp
This commit is contained in:
parent
6cf02c1616
commit
5b708a5225
2
configure
vendored
2
configure
vendored
@ -201,7 +201,7 @@ def checking(d_dependency):
|
|||||||
a = check_output(["which", binary])
|
a = check_output(["which", binary])
|
||||||
|
|
||||||
if binary == "irpf90":
|
if binary == "irpf90":
|
||||||
version = check_output("bash irpf90 -v".split())
|
version = check_output("irpf90 -v".split()).strip()
|
||||||
|
|
||||||
from distutils.version import LooseVersion
|
from distutils.version import LooseVersion
|
||||||
if LooseVersion(version) < LooseVersion("1.6.7"):
|
if LooseVersion(version) < LooseVersion("1.6.7"):
|
||||||
|
@ -13,8 +13,16 @@ function _install()
|
|||||||
[[ -x ./irpf90/bin/irpf90 ]] || return 1
|
[[ -x ./irpf90/bin/irpf90 ]] || return 1
|
||||||
[[ -x ./irpf90/bin/irpman ]] || return 1
|
[[ -x ./irpf90/bin/irpman ]] || return 1
|
||||||
rm -rf -- ../bin/irpf90 ../bin/irpman
|
rm -rf -- ../bin/irpf90 ../bin/irpman
|
||||||
echo 'exec ${QP_ROOT}/install/irpf90/bin/irpf90 $@' > ../bin/irpf90 || return 1
|
cat << EOF > ../bin/irpf90 || return 1
|
||||||
echo 'exec ${QP_ROOT}/install/irpf90/bin/irpman $@' > ../bin/irpman || 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
|
chmod +x ../bin/irpf90 ../bin/irpman || return 1
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user