Reorganisation of the source tree
[ghc-hetmet.git] / utils / hsc2hs / hsc2hs.sh
diff --git a/utils/hsc2hs/hsc2hs.sh b/utils/hsc2hs/hsc2hs.sh
new file mode 100644 (file)
index 0000000..fe00d45
--- /dev/null
@@ -0,0 +1,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 "$@"