From: Ian Lynagh Date: Sat, 5 Jul 2008 21:41:04 +0000 (+0000) Subject: Add hsc2hs.wrapper X-Git-Tag: Before_cabalised-GHC~68 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=436cfdf29a294aa6a6cb69cf6ea4f43a673d5dd1 Add hsc2hs.wrapper --- diff --git a/utils/hsc2hs/hsc2hs.wrapper b/utils/hsc2hs/hsc2hs.wrapper new file mode 100644 index 0000000..5051222 --- /dev/null +++ b/utils/hsc2hs/hsc2hs.wrapper @@ -0,0 +1,13 @@ + +tflag="--template=$datadir/template-hsc.h" +for arg do + case "$arg" in + -c*) HSC2HS_EXTRA=;; + --cc=*) HSC2HS_EXTRA=;; + -t*) tflag=;; + --template=*) tflag=;; + --) break;; + esac +done + +$executablename $tflag $HSC2HS_EXTRA "$@"