diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-05-05 16:05:27 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-05-05 16:05:27 -0400 |
commit | f44136a6ffd122fa8e703f71935b7fe6c5ffc699 (patch) | |
tree | 70cef0dd2574d42ca873ef8bc49148cfc9300f48 /Setup.hs | |
parent | c3395d3d9443084bda31a661849d7d2ce6d5ff63 (diff) |
Setup: avoid trying to install man pages and desktop files on Windows
Diffstat (limited to 'Setup.hs')
-rw-r--r-- | Setup.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -15,6 +15,7 @@ import Control.Monad import System.Directory import Data.List import Control.Exception +import qualified System.Info import qualified Build.DesktopFile as DesktopFile import qualified Build.Configure as Configure @@ -28,7 +29,7 @@ main = defaultMainWithHooks simpleUserHooks } myPostCopy :: Args -> CopyFlags -> PackageDescription -> LocalBuildInfo -> IO () -myPostCopy _ flags pkg lbi = do +myPostCopy _ flags pkg lbi = when (System.Info.os /= "mingw32") $ do installGitAnnexShell dest verbosity pkg lbi installManpages dest verbosity pkg lbi installDesktopFile dest verbosity pkg lbi |