Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
819e443c
Commit
819e443c
authored
Oct 07, 2009
by
kili
Browse files
Make the unpleasant sed one-liner less unpleasant
parent
d7641cc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/ghc-cabal/ghc.mk
View file @
819e443c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment