Skip to content

Commit

Permalink
Remove: Remove outdated and obsolete man pages
Browse files Browse the repository at this point in the history
Drop man pages for greenbone-certdata-sync and greenbone-scapdata-sync.
There is no man page for the main `greenbone-feed-sync` script therefore
it doesn't make sense to keep these two.

(cherry picked from commit a460309)
  • Loading branch information
bjoernricks committed Apr 19, 2023
1 parent c4b2f9e commit ac8a880
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,33 +106,18 @@ endif (NOT XSLTPROC_EXECUTABLE)

if (XMLTOMAN_EXECUTABLE)
add_custom_target (man COMMENT "Building manual page..."
DEPENDS gvmd.8 greenbone-certdata-sync.8 greenbone-scapdata-sync.8)
DEPENDS gvmd.8)

add_custom_command (OUTPUT gvmd.8
COMMAND sh
ARGS -c \"${XMLTOMAN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/gvmd.8.xml > ${CMAKE_CURRENT_BINARY_DIR}/gvmd.8\;\"
DEPENDS gvmd.8.xml)

add_custom_command (OUTPUT greenbone-certdata-sync.8
COMMAND sh
ARGS -c \"${XMLTOMAN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/greenbone-certdata-sync.8.xml > ${CMAKE_CURRENT_BINARY_DIR}/greenbone-certdata-sync.8\;\"
DEPENDS greenbone-certdata-sync.8.xml)

add_custom_command (OUTPUT greenbone-scapdata-sync.8
COMMAND sh
ARGS -c \"${XMLTOMAN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/greenbone-scapdata-sync.8.xml > ${CMAKE_CURRENT_BINARY_DIR}/greenbone-scapdata-sync.8\;\"
DEPENDS greenbone-scapdata-sync.8.xml)
else (XMLTOMAN_EXECUTABLE)
message (STATUS "WARNING: xmltoman is required to generate manpage.")
add_custom_command (OUTPUT gvmd.8
COMMAND echo "[Error: xmltoman required to see manpage here]"
> gvmd.8)
add_custom_command (OUTPUT greenbone-certdata-sync.8
COMMAND echo "[Error: xmltoman required to see manpage here]"
> greenbone-certdata-sync.8)
add_custom_command (OUTPUT greenbone-scapdata-sync.8
COMMAND echo "[Error: xmltoman required to see manpage here]"
> greenbone-scapdata-sync.8)
endif (XMLTOMAN_EXECUTABLE)

if (XMLMANTOHTML_EXECUTABLE)
Expand All @@ -158,6 +143,6 @@ if (XSLTPROC_EXECUTABLE)
COMPONENT doc)
endif (XSLTPROC_EXECUTABLE)

install (FILES gvmd.8 greenbone-certdata-sync.8 greenbone-scapdata-sync.8
install (FILES gvmd.8
DESTINATION share/man/man8/
COMPONENT doc)

0 comments on commit ac8a880

Please sign in to comment.