0d82ff62f85b4cbd8a80ce695b11ab2c76f5b12f
[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         -c*)          HSC2HS_EXTRA=;;
8         --cc=*)       HSC2HS_EXTRA=;;
9         -t*)          tflag=;;
10         --template=*) tflag=;;
11         --)           break;;
12     esac
13 done
14
15 exec "$executablename" "$tflag" $HSC2HS_EXTRA ${1+"$@"} "$Iflag"