projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove some code only used with GHC 6.11.*
[ghc-hetmet.git]
/
utils
/
ghc-cabal
/
ghc.mk
diff --git
a/utils/ghc-cabal/ghc.mk
b/utils/ghc-cabal/ghc.mk
index
d0f3bd5
..
f495048
100644
(file)
--- a/
utils/ghc-cabal/ghc.mk
+++ b/
utils/ghc-cabal/ghc.mk
@@
-79,9
+79,11
@@
$(GHC_CABAL_DIR)/dist-dummy-ghc/build/dummy-ghc.hs : $(GHC_CABAL_DIR)/ghc.mk $(M
# ( "PostfixOperators", ...
# then it translates them into
# ["PostfixOperators"] ++
# ( "PostfixOperators", ...
# then it translates them into
# ["PostfixOperators"] ++
+# Tabs are a pain to handle portably with sed, so rather than worrying
+# about them we just use tr to remove them all before we start.
echo 'extensions :: [String]' >> $@
echo 'extensions =' >> $@
echo 'extensions :: [String]' >> $@
echo 'extensions =' >> $@
- sed '/^xFlags/,/]/s/^[[:space:]]*([[:space:]]*\("[^"]*"\)[^"]*/ [\1] ++/p;d' compiler/main/DynFlags.hs >> $@
+ '$(TR)' -d '\t' < compiler/main/DynFlags.hs | '$(SED)' '/^xFlags/,/]/s/^ *( *\("[^"]*"\)[^"]*/ [\1] ++/p;d' >> $@
echo ' []' >> $@
# We don't build dummy-ghc with Cabal, so we need to pass -package
echo ' []' >> $@
# We don't build dummy-ghc with Cabal, so we need to pass -package