2015-06-05 22:33:19 +02:00
|
|
|
#!/bin/bash -x
|
|
|
|
|
|
|
|
TARGET=irpf90
|
|
|
|
function _install()
|
|
|
|
{
|
|
|
|
cd ..
|
2015-06-08 14:49:10 +02:00
|
|
|
QP_ROOT=$PWD
|
2015-06-05 22:33:19 +02:00
|
|
|
cd -
|
|
|
|
|
|
|
|
make -C ${BUILD} || return 1
|
|
|
|
rm -rf -- ./irpf90
|
|
|
|
mv ${BUILD} . || return 1
|
|
|
|
[[ -x ./irpf90/bin/irpf90 ]] || return 1
|
|
|
|
[[ -x ./irpf90/bin/irpman ]] || return 1
|
|
|
|
rm -rf -- ../bin/irpf90 ../bin/irpman
|
2015-06-24 11:58:21 +02:00
|
|
|
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
|
2015-06-05 22:33:19 +02:00
|
|
|
chmod +x ../bin/irpf90 ../bin/irpman || return 1
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
source scripts/build.sh
|
|
|
|
|
|
|
|
|