diff --git a/configure b/configure index 6ecd08ec..e6e58a60 100755 --- a/configure +++ b/configure @@ -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"): diff --git a/install/scripts/install_irpf90.sh b/install/scripts/install_irpf90.sh index 60bcf6dc..62de9417 100755 --- a/install/scripts/install_irpf90.sh +++ b/install/scripts/install_irpf90.sh @@ -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 }