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