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:
d7641cc
)
Make the unpleasant sed one-liner less unpleasant
author
Matthias Kilian
<kili@outback.escape.de>
Wed, 7 Oct 2009 10:12:39 +0000
(10:12 +0000)
committer
Matthias Kilian
<kili@outback.escape.de>
Wed, 7 Oct 2009 10:12:39 +0000
(10:12 +0000)
utils/ghc-cabal/ghc.mk
patch
|
blob
|
history
diff --git
a/utils/ghc-cabal/ghc.mk
b/utils/ghc-cabal/ghc.mk
index
b4b599d
..
3b4a85c
100644
(file)
--- a/
utils/ghc-cabal/ghc.mk
+++ b/
utils/ghc-cabal/ghc.mk
@@
-77,7
+77,7
@@
$(GHC_CABAL_DIR)/dist-dummy-ghc/build/dummy-ghc.hs : $(GHC_CABAL_DIR)/ghc.mk $(M
# ["PostfixOperators"] ++
echo 'extensions :: [String]' >> $@
echo 'extensions =' >> $@
# ["PostfixOperators"] ++
echo 'extensions :: [String]' >> $@
echo 'extensions =' >> $@
- sed '/^xFlags/,/]/{/^ (/{s/^[^"]*"/ ["/; s/"[^"]*$$/"] ++/; p}}; d' compiler/main/DynFlags.hs >> $@
+ sed '/^xFlags/,/]/s/^[[:space:]]*([[:space:]]*\("[^"]*"\)[^"]*/ [\1] ++/p;d' compiler/main/DynFlags.hs >> $@
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