diff options
author | Ian Lynagh <igloo@earth.li> | 2009-12-16 20:43:54 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-12-16 20:43:54 +0000 |
commit | fb783aeaa5bc1cc60e6bb551c1cd01a097b84fad (patch) | |
tree | 9f2416869f1d49cf5b70760352e39588175fd716 /utils | |
parent | 8e63e8eae43292fbeb219740eadd798bde76760c (diff) | |
download | haskell-fb783aeaa5bc1cc60e6bb551c1cd01a097b84fad.tar.gz |
Fix build with Solaris sed
Rather than trying to handle tabs with sed portably, we just use tr to
remove them before we start.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ghc-cabal/ghc.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/ghc-cabal/ghc.mk b/utils/ghc-cabal/ghc.mk index b238db91ba..f495048d22 100644 --- a/utils/ghc-cabal/ghc.mk +++ b/utils/ghc-cabal/ghc.mk @@ -79,9 +79,11 @@ $(GHC_CABAL_DIR)/dist-dummy-ghc/build/dummy-ghc.hs : $(GHC_CABAL_DIR)/ghc.mk $(M # ( "PostfixOperators", ... # then it translates them into # ["PostfixOperators"] ++ +# Tabs are a pain to handle portably with sed, so rather than worrying +# about them we just use tr to remove them all before we start. echo 'extensions :: [String]' >> $@ echo 'extensions =' >> $@ - '$(SED)' '/^xFlags/,/]/s/^[[:space:]]*([[:space:]]*\("[^"]*"\)[^"]*/ [\1] ++/p;d' compiler/main/DynFlags.hs >> $@ + '$(TR)' -d '\t' < compiler/main/DynFlags.hs | '$(SED)' '/^xFlags/,/]/s/^ *( *\("[^"]*"\)[^"]*/ [\1] ++/p;d' >> $@ echo ' []' >> $@ # We don't build dummy-ghc with Cabal, so we need to pass -package |