Drop dead wrapper logic for Darwin
[hsc2hs.git] / hsc2hs.wrapper
1 #!/bin/sh
2
3 tflag="--template=$topdir/template-hsc.h"
4 Iflag="-I$topdir/include/"
5 for arg do
6     case "$arg" in
7         -t*)          tflag=;;
8         --template=*) tflag=;;
9         --)           break;;
10     esac
11 done
12
13 exec "$executablename" ${tflag:+"$tflag"} $HSC2HS_EXTRA ${1+"$@"} "$Iflag"