summaryrefslogtreecommitdiff
path: root/pandoc.cabal
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-28 14:39:17 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-28 14:39:17 -0700
commitfe625e053d078e03d824a1df746196b8a2c697b1 (patch)
tree0129bded228d952594d06a8ed675154d05909abc /pandoc.cabal
parent3e5b4faaf2a99950991ff7b16c0e0b06234b9792 (diff)
New method for producing man pages.
This change adds `--man1` and `--man5` options to pandoc, so pandoc can generate its own man pages. It removes the old overly complex method of building a separate executable (but not installing it) just to create the man pages. The man pages are no longer automatically created in the build process. The man/ directory has been removed. The man page templates have been moved to data/. New unexported module: Text.Pandoc.ManPages. Text.Pandoc.Data now exports readmeFile, and `readDataFile` knows how to find README. Closes #2190.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r--pandoc.cabal23
1 files changed, 5 insertions, 18 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 932443746..2a542c4e9 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -106,13 +106,12 @@ Data-Files:
data/sample.lua
-- documentation
README, COPYRIGHT
+ -- man page templates
+ data/pandoc.1.template
+ data/pandoc_markdown.5.template
Extra-Source-Files:
-- documentation
INSTALL, BUGS, CONTRIBUTING.md, changelog
- -- code to create pandoc.1 man page
- Makefile
- man/man1/pandoc.1.template
- man/man5/pandoc_markdown.5.template
-- trypandoc
trypandoc/Makefile
trypandoc/index.html
@@ -323,6 +322,7 @@ Library
Text.Pandoc.Readers.Native,
Text.Pandoc.Readers.Haddock,
Text.Pandoc.Readers.TWiki,
+ Text.Pandoc.Readers.Txt2Tags,
Text.Pandoc.Readers.Docx,
Text.Pandoc.Readers.EPUB,
Text.Pandoc.Writers.Native,
@@ -356,7 +356,7 @@ Library
Text.Pandoc.XML,
Text.Pandoc.SelfContained,
Text.Pandoc.Process,
- Text.Pandoc.Readers.Txt2Tags
+ Text.Pandoc.ManPages
Other-Modules: Text.Pandoc.Readers.Docx.Lists,
Text.Pandoc.Readers.Docx.Reducible,
Text.Pandoc.Readers.Docx.Parse,
@@ -422,19 +422,6 @@ Executable trypandoc
else
Buildable: False
--- NOTE: A trick in Setup.hs makes sure this won't be installed:
-Executable make-pandoc-man-pages
- Main-Is: make-pandoc-man-pages.hs
- Hs-Source-Dirs: man
- Build-Depends: pandoc,
- base >= 4.2 && < 5,
- directory >= 1 && < 1.3,
- filepath >= 1.1 && < 1.5,
- old-time >= 1.0 && < 1.2,
- time >= 1.2 && < 1.6
- Default-Language: Haskell98
- Buildable: True
-
Test-Suite test-pandoc
Type: exitcode-stdio-1.0
Main-Is: test-pandoc.hs