Commit 819e443c authored by kili's avatar kili

Make the unpleasant sed one-liner less unpleasant

parent d7641cc7
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment