summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-03-09 13:30:14 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-03-09 13:30:14 -0800
commit96274b2838a56df0463c844ef5ff6080545690e8 (patch)
tree292f7f198715861b9c06b880a7afc1d9dfd37c13
parent0d095be64f189def9324a1b323f0943d90224eb1 (diff)
Fixed permissions on installed man pages.
Thanks to Magnus Therning for the patch.
-rw-r--r--Setup.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Setup.hs b/Setup.hs
index 2ee9e29a9..56df0045d 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -8,7 +8,7 @@ import Distribution.Simple.LocalBuildInfo
import Distribution.Verbosity ( Verbosity, silent )
import Distribution.Simple.GHC (ghcPackageDbOptions)
import Distribution.Simple.InstallDirs (mandir, bindir, CopyDest (NoCopyDest))
-import Distribution.Simple.Utils (copyFiles)
+import Distribution.Simple.Utils (installOrdinaryFiles)
import Control.Exception ( bracket_ )
import Control.Monad ( unless )
import System.Process ( rawSystem, runCommand, waitForProcess )
@@ -86,7 +86,7 @@ manDir = "man"
installManpages :: PackageDescription -> LocalBuildInfo
-> Verbosity -> CopyDest -> IO ()
installManpages pkg lbi verbosity copy =
- copyFiles verbosity (mandir (absoluteInstallDirs pkg lbi copy))
+ installOrdinaryFiles verbosity (mandir (absoluteInstallDirs pkg lbi copy))
(zip (repeat manDir) manpages)
-- | Returns a list of 'dependencies' that have been modified after 'file'.