git.iko.soy/typeable/pandoc
on master help sign in
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

commitc5735511eb9a991b1907c8eaa7373d68270978eb authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateThu 31 Dec 2009, 01:47 (17 years ago) parent6bab230
1 file changed+2−1
Setup.hs+2−1
Setup.hs+2−1
@@ -39,7 +39,8 @@ makeManPage manpage = do
3939 let source = manDir </> manpage <.> "md"
4040 modifiedDeps <- modifiedDependencies page [source]
4141 unless (null modifiedDeps) $ do
42− ec <- runProcess pandoc ["-s", "-S", "-r", "markdown", "-w", "man", "-o", page, source]
42+ ec <- runProcess pandoc ["-s", "-S", "-r", "markdown", "-w", "man",
43+ "--template=templates/man.template", "-o", page, source]
4344 Nothing Nothing Nothing Nothing (Just stderr) >>= waitForProcess
4445 case ec of
4546 ExitSuccess -> putStrLn $ "Created " ++ manDir </> manpage