projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2004-08-20 12:21:03 by simonmar]
[ghc-hetmet.git]
/
ghc
/
utils
/
hsc2hs
/
hsc2hs.sh
diff --git
a/ghc/utils/hsc2hs/hsc2hs.sh
b/ghc/utils/hsc2hs/hsc2hs.sh
index
d757d11
..
fe00d45
100644
(file)
--- a/
ghc/utils/hsc2hs/hsc2hs.sh
+++ b/
ghc/utils/hsc2hs/hsc2hs.sh
@@
-1,9
+1,13
@@
-for arg; do
+tflag="--template=$HSC2HS_DIR/template-hsc.h"
+for arg do
case "$arg" in
case "$arg" in
- (--cc=*) HSC2HS_EXTRA=;;
- (--) break;;
+ -c*) HSC2HS_EXTRA=;;
+ --cc=*) HSC2HS_EXTRA=;;
+ -t*) tflag=;;
+ --template=*) tflag=;;
+ --) break;;
esac
done
esac
done
-$HSC2HS_DIR/$HS_PROG -t $HSC2HS_DIR/template-hsc.h $HSC2HS_EXTRA "$@"
+$HSC2HS_BINDIR/$HS_PROG $tflag $HSC2HS_EXTRA "$@"