diff options
author | Matthias Kilian <kili@outback.escape.de> | 2009-10-07 10:12:39 +0000 |
---|---|---|
committer | Matthias Kilian <kili@outback.escape.de> | 2009-10-07 10:12:39 +0000 |
commit | 819e443cade345a04e4de0aca28e3ca08ac30a76 (patch) | |
tree | 9b53816368f5cfe8a64fb32c9737e93763f42ac8 /utils/ghc-cabal/ghc.mk | |
parent | d7641cc7db5938fbd7adaf5210f91239971b8a2f (diff) | |
download | haskell-819e443cade345a04e4de0aca28e3ca08ac30a76.tar.gz |
Make the unpleasant sed one-liner less unpleasant
Diffstat (limited to 'utils/ghc-cabal/ghc.mk')
-rw-r--r-- | utils/ghc-cabal/ghc.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ghc-cabal/ghc.mk b/utils/ghc-cabal/ghc.mk index b4b599d111..3b4a85cc0f 100644 --- 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 =' >> $@ - 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 |