10
1
mirror of https://gitlab.com/scemama/qmcchem.git synced 2024-11-20 04:52:22 +01:00
qmcchem/install/scripts/install_irpf90.sh

29 lines
441 B
Bash
Raw Normal View History

2015-12-18 22:25:32 +01:00
#!/bin/bash -x
TARGET=irpf90
function _install()
{
set -e
set -u
make -C "${BUILD}" -j
rm -rf -- ../irpf90
mv "${BUILD}" ../
# Check the build is OK
[[ -x ../irpf90/bin/irpf90 ]]
[[ -x ../irpf90/bin/irpman ]]
for i in irpf90 irpman
do
rm -rf -- ../bin/$i
cat << EOF > ../bin/$i
#!/bin/bash -u
exec "\${QMCCHEM_PATH}"/irpf90/bin/$i "\$@"
EOF
chmod +x ../bin/$i
done
return 0
}
source scripts/build.sh