From: Matthias Kilian Date: Wed, 7 Oct 2009 10:12:39 +0000 (+0000) Subject: Make the unpleasant sed one-liner less unpleasant X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=819e443cade345a04e4de0aca28e3ca08ac30a76 Make the unpleasant sed one-liner less unpleasant --- diff --git a/utils/ghc-cabal/ghc.mk b/utils/ghc-cabal/ghc.mk index b4b599d..3b4a85c 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