summaryrefslogtreecommitdiff
path: root/Setup.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Setup.hs')
-rw-r--r--Setup.hs15
1 files changed, 2 insertions, 13 deletions
diff --git a/Setup.hs b/Setup.hs
index bba8e884c..fe1798763 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -38,12 +38,11 @@ main = defaultMainWithHooks $ simpleUserHooks {
, instHook = \pkgdescr ->
instHook simpleUserHooks pkgdescr{ executables =
[x | x <- executables pkgdescr, exeName x `notElem` noInstall] }
- , postBuild = \args bf pkgdescr lbi -> do
+ , postBuild = \args bf pkgdescr lbi ->
makeManPages args bf pkgdescr lbi
- makeReferenceFiles args bf pkgdescr lbi
}
where
- noInstall = ["make-pandoc-man-pages","make-reference-files"]
+ noInstall = ["make-pandoc-man-pages"]
ppBlobSuffixHandler :: PPSuffixHandler
ppBlobSuffixHandler = ("hsb", \_ _ ->
@@ -64,13 +63,3 @@ makeManPages _ bf _ LocalBuildInfo{buildDir=buildDir}
where
verbosity = fromFlagOrDefault normal $ buildVerbosity bf
progPath = buildDir </> "make-pandoc-man-pages" </> "make-pandoc-man-pages"
-
-makeReferenceFiles :: Args -> BuildFlags -> PackageDescription -> LocalBuildInfo -> IO ()
-makeReferenceFiles _ bf _ LocalBuildInfo{buildDir=buildDir}
- = mapM_
- (rawSystemExit verbosity progPath . return)
- referenceFormats
- where
- verbosity = fromFlagOrDefault normal $ buildVerbosity bf
- progPath = buildDir </> "make-reference-files" </> "make-reference-files"
- referenceFormats = ["docx", "odt"]