From d1b2608e8f7bd9e8f9b5954647aab477b21b976b Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 9 Feb 2022 22:56:04 +0100 Subject: [PATCH] CMake+Doc: Add configuration file example --- doc/CMakeLists.txt | 5 +++++ doc/manafiles.json | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 doc/manafiles.json diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index cc956ba..758161a 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -18,3 +18,8 @@ install( FILES ${CMAKE_BINARY_DIR}/manafiles.1.gz DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 CONFIGURATIONS Release) + +install( + FILES ${CMAKE_CURRENT_LIST_DIR}/manafiles.json + DESTINATION ${CMAKE_INSTALL_DOCDIR}/examples + CONFIGURATIONS Release) diff --git a/doc/manafiles.json b/doc/manafiles.json new file mode 100644 index 0000000..32f9776 --- /dev/null +++ b/doc/manafiles.json @@ -0,0 +1,14 @@ +{ + "excludePaths" : { + ".git": "directory", + ".md": "endsWith", + "packages": "file", + "README.org": "endsWith", + "screenshot.png": "file" + }, + "systemDirectories": [ + "/boot", + "/etc", + "/usr/share" + ] +}