Skip to content

Commit

Permalink
Merge pull request #3660 from 0xmohit/issue3653
Browse files Browse the repository at this point in the history
Ensure appropriate permissions for manpage
  • Loading branch information
ezyang authored Aug 2, 2016
2 parents 5a1f7d5 + 477a554 commit 23df404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cabal-install/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Distribution.Simple.InstallDirs ( mandir
import Distribution.Simple.LocalBuildInfo ( LocalBuildInfo(..)
, absoluteInstallDirs
)
import Distribution.Simple.Utils ( copyFiles
import Distribution.Simple.Utils ( installOrdinaryFiles
, notice )
import Distribution.Simple.Setup ( buildVerbosity
, copyDest
Expand Down Expand Up @@ -60,4 +60,4 @@ buildManpage lbi verbosity = do
installManpage :: PackageDescription -> LocalBuildInfo -> Verbosity -> CopyDest -> IO ()
installManpage pkg lbi verbosity copy = do
let destDir = mandir (absoluteInstallDirs pkg lbi copy) </> "man1"
copyFiles verbosity destDir [(buildDir lbi </> "cabal", "cabal.1")]
installOrdinaryFiles verbosity destDir [(buildDir lbi </> "cabal", "cabal.1")]

0 comments on commit 23df404

Please sign in to comment.