summaryrefslogtreecommitdiff
path: root/ghc/utils/hsc2hs/hsc2hs.sh
blob: fe00d45036492529e4f9c6ecb11a006651a5356a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

tflag="--template=$HSC2HS_DIR/template-hsc.h"
for arg do
    case "$arg" in
        -c*)    HSC2HS_EXTRA=;;
        --cc=*) HSC2HS_EXTRA=;;
	-t*)	tflag=;;
	--template=*) tflag=;;
        --)     break;;
    esac
done

$HSC2HS_BINDIR/$HS_PROG $tflag $HSC2HS_EXTRA "$@"