#!/bin/sh
script=${1+"$@"}
src=$$.ps
perl -nle 'print if 1<$. || !/^#!/' $script > /tmp/$src
cd /tmp
gs -q -dNODISPLAY -dBATCH -dNOPAUSE $src
rm $src