[commit: packages/Cabal] ghc-head: 'cabal-sdist': include extra-doc-files. (5cf8187)

git at git.haskell.org git at git.haskell.org
Fri Sep 13 17:54:54 CEST 2013


Repository : ssh://git@git.haskell.org/Cabal

On branch  : ghc-head
Link       : http://git.haskell.org/?p=packages/Cabal.git;a=commit;h=5cf81870cf7b107e16e85caf5edefb33ec4cb278

>---------------------------------------------------------------

commit 5cf81870cf7b107e16e85caf5edefb33ec4cb278
Author: Mikhail Glushenkov <mikhail.glushenkov at gmail.com>
Date:   Thu Sep 5 21:19:01 2013 +0200

    'cabal-sdist': include extra-doc-files.
    
    Fixes #1477.


>---------------------------------------------------------------

5cf81870cf7b107e16e85caf5edefb33ec4cb278
 Cabal/Distribution/Simple/SrcDist.hs |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Cabal/Distribution/Simple/SrcDist.hs b/Cabal/Distribution/Simple/SrcDist.hs
index 3ad66c5..439175c 100644
--- a/Cabal/Distribution/Simple/SrcDist.hs
+++ b/Cabal/Distribution/Simple/SrcDist.hs
@@ -259,10 +259,16 @@ listPackageSourcesOrdinary verbosity pkg_descr pps createSetup =
     . forM (dataFiles pkg_descr) $ \filename ->
        matchFileGlob (dataDir pkg_descr </> filename)
 
+    -- Extra doc files.
+  , fmap concat
+    . forM (extraDocFiles pkg_descr) $ \ filename ->
+      matchFileGlob filename
+
     -- License file.
   , return $ case [licenseFile pkg_descr]
              of [[]] -> []
                 l    -> l
+
     -- Install-include files.
   , withLib $ \ l -> do
        let lbi = libBuildInfo l




More information about the ghc-commits mailing list