Skip to content

Commit

Permalink
ensure appropriate permissions for manpage
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmohit committed Aug 2, 2016
1 parent 5a1f7d5 commit 477a554
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 477a554

Please sign in to comment.