Skip to content

Commit

Permalink
man
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Aug 17, 2023
1 parent 5dbcea3 commit 007d367
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/buildman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
- run: |
mkdir output
# TODO: build manpage

- uses: docker://pandoc/latex:2.9
with:
args: --output=output/manual.html man/manual.md
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,6 @@ add_subdirectory(test) # Tests
add_subdirectory(gui) # Graphical application
add_subdirectory(tools/triage) # Triage tool
add_subdirectory(tools)
add_subdirectory(man)

include(cmake/clang_tidy.cmake)
7 changes: 7 additions & 0 deletions man/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#if (BUILD_MANPAGE)
find_program(XSLTPROC NAMES xsltproc REQUIRED)
#set(DB2MAN "/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl")
set(MAN_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/cppcheck.1.xml")
add_custom_target(man ${XSLTPROC} --nonet --param man.charmap.use.subset "0" ${DB2MAN} ${MAN_SOURCE}
DEPENDS ${MAN_SOURCE})
#endif()

0 comments on commit 007d367

Please sign in to comment.