blob: 904c7f8af5714d75360388f5a95264c76e06b1f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env bash
output="${OUTPUT:-fpm-single-file.F90}"
args=("$@")
file=$(printf "%s\n" "${args[@]}" | grep -P '^.+\.[fF]90$')
if [ $? = 0 ]; then
echo " + Appending source file '$file' to '${output}'"
cat $file >> "${output}"
fi
exec gfortran "${args[@]}"
|