projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ef4a7e
)
Add hsc2hs.wrapper
author
Ian Lynagh
<igloo@earth.li>
Sat, 5 Jul 2008 21:41:04 +0000
(21:41 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sat, 5 Jul 2008 21:41:04 +0000
(21:41 +0000)
utils/hsc2hs/hsc2hs.wrapper
[new file with mode: 0644]
patch
|
blob
diff --git a/utils/hsc2hs/hsc2hs.wrapper
b/utils/hsc2hs/hsc2hs.wrapper
new file mode 100644
(file)
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 "$@"