#!/bin/dash export PATH=$PATH:/bin:/usr/bin vdir=`dirname $1` cdir=`pwd` cd $vdir /usr/bin/gmcs "$1" cd $cdir shift exec "$vdir/main.exe" "$@"