Add hsc2hs.wrapper
authorIan Lynagh <igloo@earth.li>
Sat, 5 Jul 2008 21:41:04 +0000 (21:41 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 5 Jul 2008 21:41:04 +0000 (21:41 +0000)
utils/hsc2hs/hsc2hs.wrapper [new file with mode: 0644]

diff --git a/utils/hsc2hs/hsc2hs.wrapper b/utils/hsc2hs/hsc2hs.wrapper
new file mode 100644 (file)
index 0000000..5051222
--- /dev/null
@@ -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 "$@"