diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-12-31 01:47:00 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-12-31 01:47:00 +0000 |
commit | c5735511eb9a991b1907c8eaa7373d68270978eb (patch) | |
tree | 6f67c1c164960db074f47fc73f6debf55bc13401 /Setup.hs | |
parent | 6bab23035740ef6d2bd6c26d35f2e27e2108921e (diff) | |
download | pandoc-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.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |