aboutsummaryrefslogtreecommitdiff
path: root/Setup.hs
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:47:00 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:47:00 +0000
commitc5735511eb9a991b1907c8eaa7373d68270978eb (patch)
tree6f67c1c164960db074f47fc73f6debf55bc13401 /Setup.hs
parent6bab23035740ef6d2bd6c26d35f2e27e2108921e (diff)
downloadpandoc-c5735511eb9a991b1907c8eaa7373d68270978eb.tar.gz
Changed Setup.hs so it can build man pages again.
Problem was that it couldn't find the man template until the data files were installed. Fixed by using --template to point it at the right file in the source directory. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1742 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Setup.hs')
-rw-r--r--Setup.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Setup.hs b/Setup.hs
index d808a65b8..84384636b 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -39,7 +39,8 @@ makeManPage manpage = do
let source = manDir </> manpage <.> "md"
modifiedDeps <- modifiedDependencies page [source]
unless (null modifiedDeps) $ do
- ec <- runProcess pandoc ["-s", "-S", "-r", "markdown", "-w", "man", "-o", page, source]
+ ec <- runProcess pandoc ["-s", "-S", "-r", "markdown", "-w", "man",
+ "--template=templates/man.template", "-o", page, source]
Nothing Nothing Nothing Nothing (Just stderr) >>= waitForProcess
case ec of
ExitSuccess -> putStrLn $ "Created " ++ manDir </> manpage