#!/bin/sh
script=${1+"$@"}
src=$$.f95
bin=$$
perl -nle 'print if 1<$. || !/^#!/' $script > /tmp/$src
cd /tmp
flang -o $bin $src && ./$bin
rm $src $bin