10
1
mirror of https://gitlab.com/scemama/qmcchem.git synced 2024-11-15 10:33:38 +01:00
qmcchem/install/scripts/install_irpf90.sh
2015-12-18 22:27:18 +01:00

29 lines
441 B
Bash
Executable File

#!/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