diff options
Diffstat (limited to 'man')
-rw-r--r-- | man/CMakeLists.txt | 19 | ||||
-rw-r--r-- | man/man1/cmark.1 | 34 |
2 files changed, 19 insertions, 34 deletions
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt new file mode 100644 index 0000000..29bb19c --- /dev/null +++ b/man/CMakeLists.txt @@ -0,0 +1,19 @@ +set(MANDEST ${CMAKE_CURRENT_BINARY_DIR}) +file(MAKE_DIRECTORY ${MANDEST}/man1) + +add_custom_target(doc ALL + DEPENDS ${MANDEST}/man1/cmark.1 +) + +add_custom_command(OUTPUT ${MANDEST}/man1/cmark.1 + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/cmark.1.md + COMMAND pandoc "-s" "-t" "man" + ${CMAKE_CURRENT_SOURCE_DIR}/cmark.1.md + -o ${MANDEST}/man1/cmark.1 + VERBATIM) + +INSTALL(FILES ${MANDEST}/man1/cmark.1 DESTINATION share/man/man1) + +# TODO: create cmark.3 man page. +# file(MAKE_DIRECTORY ${MANDEST}/man3) +# INSTALL(FILES ${MANDEST}/man3/cmark.3 DESTINATION share/man/man3) diff --git a/man/man1/cmark.1 b/man/man1/cmark.1 deleted file mode 100644 index 3681456..0000000 --- a/man/man1/cmark.1 +++ /dev/null @@ -1,34 +0,0 @@ -.TH "cmark" "1" "October 22, 2014" "cmark manual" "" -.SH NAME -.PP -cmark \- convert CommonMark formatted text to HTML -.SH SYNOPSIS -.PP -cmark [\f[I]options\f[]] [file*] -.SH DESCRIPTION -.PP -\f[C]cmark\f[] acts as a pipe, reading from stdin or from the specified -files and writing to stdout. -It converts Markdown formatted plain text to HTML, using the conventions -described in the CommonMark spec. -If multiple files are specified, the contents of the files are simply -concatenated before parsing. -.SH OPTIONS -.TP -.B \f[C]\-\-ast\f[] -Print an abstract syntax tree instead of HTML. -.RS -.RE -.TP -.B \f[C]\-\-help\f[] -Print usage information. -.RS -.RE -.TP -.B \f[C]\-\-version\f[] -Print version. -.RS -.RE -.SH AUTHORS -.PP -John MacFarlane |