From c5735511eb9a991b1907c8eaa7373d68270978eb Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Thu, 31 Dec 2009 01:47:00 +0000 Subject: 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 --- Setup.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3