Moved manpage.template -> man/man1/pandoc.1.template.

This commit is contained in:
John MacFarlane 2011-01-28 09:15:29 -08:00
parent f90e18b955
commit 219573eed2
3 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,8 @@ main = do
rmContents <- liftM toString $ B.readFile "README" rmContents <- liftM toString $ B.readFile "README"
let (Pandoc meta blocks) = readMarkdown defaultParserState rmContents let (Pandoc meta blocks) = readMarkdown defaultParserState rmContents
let newBlocks = removeWrapperSect blocks let newBlocks = removeWrapperSect blocks
manTemplate <- liftM toString $ B.readFile "manpage.template" manTemplate <- liftM toString $ B.readFile
$ "man" </> "man1" </> "pandoc.1.template"
let opts = defaultWriterOptions{ writerStandalone = True let opts = defaultWriterOptions{ writerStandalone = True
, writerTemplate = manTemplate } , writerTemplate = manTemplate }
let manPage = writeMan opts $ let manPage = writeMan opts $

View file

@ -73,7 +73,7 @@ Extra-Source-Files:
man/man1/markdown2pdf.1.md, man/man1/markdown2pdf.1.md,
-- code to create pandoc.1 man page -- code to create pandoc.1 man page
MakeManPage.hs, MakeManPage.hs,
manpage.template, man/man1/pandoc.1.template,
-- generated man pages (produced post-build) -- generated man pages (produced post-build)
man/man1/markdown2pdf.1, man/man1/markdown2pdf.1,
man/man1/pandoc.1, man/man1/pandoc.1,