From 5976da7e5bd244213c50171e5f6325c2c51e3e99 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Mon, 30 Jun 2025 19:34:32 +0900 Subject: [PATCH] chore: fix W:useless-whatis-entry lintian warnings By default, help2man generates "manual page for foobar" for manual files. It is useless because there is no addtional information which explains what deskflow is. With --name option, .SH NAME section will be set correctly. Before: .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. .TH DESKFLOW-CLIENT "1" "June 2025" "deskflow-client v1.22.0.109, protocol v1.8" "User Commands" .SH NAME deskflow-client \- manual page for deskflow-client v1.22.0.109, protocol v1.8 .SH SYNOPSIS .B deskflow-client [\fI\,OPTIONS\/\fR] .SH DESCRIPTION After: .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. .TH DESKFLOW-CLIENT "1" "July 2025" "deskflow-client v1.22.0.109, protocol v1.8" "User Commands" .SH NAME deskflow-client \- Keyboard and mouse sharing utility (Client) .SH SYNOPSIS .B deskflow-client [\fI\,OPTIONS\/\fR] .SH DESCRIPTION Signed-off-by: Kentaro Hayashi --- src/apps/CMakeLists.txt | 3 ++- src/apps/deskflow-client/CMakeLists.txt | 2 +- src/apps/deskflow-core/CMakeLists.txt | 2 +- src/apps/deskflow-gui/CMakeLists.txt | 2 +- src/apps/deskflow-server/CMakeLists.txt | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/apps/CMakeLists.txt b/src/apps/CMakeLists.txt index 4fafa4b65..2e55ecfe9 100644 --- a/src/apps/CMakeLists.txt +++ b/src/apps/CMakeLists.txt @@ -10,11 +10,12 @@ if(UNIX AND NOT APPLE) endif() endif() -function(generate_app_man TARGET) +function(generate_app_man TARGET NAME) if(HELP2MAN) add_custom_command( TARGET ${target} POST_BUILD COMMAND QT_QPA_PLATFORM=minimal PATH=$:${PATH} ${HELP2MAN} + --name ${NAME} --include ${CMAKE_SOURCE_DIR}/src/apps/res/manpage.txt --no-info ${target} diff --git a/src/apps/deskflow-client/CMakeLists.txt b/src/apps/deskflow-client/CMakeLists.txt index 98620ddc9..7d8ea85e7 100644 --- a/src/apps/deskflow-client/CMakeLists.txt +++ b/src/apps/deskflow-client/CMakeLists.txt @@ -45,7 +45,7 @@ if(APPLE) ) elseif(UNIX) install(TARGETS ${target} DESTINATION bin) - generate_app_man(${target}) + generate_app_man(${target} "${CMAKE_PROJECT_DESCRIPTION} \\(Client\\)") elseif(WIN32) install( TARGETS ${target} diff --git a/src/apps/deskflow-core/CMakeLists.txt b/src/apps/deskflow-core/CMakeLists.txt index d10b551bd..7973ec98e 100644 --- a/src/apps/deskflow-core/CMakeLists.txt +++ b/src/apps/deskflow-core/CMakeLists.txt @@ -40,7 +40,7 @@ if(APPLE) ) elseif(UNIX) install(TARGETS ${target} DESTINATION bin) - generate_app_man(${target}) + generate_app_man(${target} "${CMAKE_PROJECT_DESCRIPTION}") elseif(WIN32) install( TARGETS ${target} diff --git a/src/apps/deskflow-gui/CMakeLists.txt b/src/apps/deskflow-gui/CMakeLists.txt index f5344b980..9d5a417d1 100644 --- a/src/apps/deskflow-gui/CMakeLists.txt +++ b/src/apps/deskflow-gui/CMakeLists.txt @@ -84,5 +84,5 @@ elseif(APPLE) install(TARGETS ${target} BUNDLE DESTINATION .) else() install(TARGETS ${target} DESTINATION bin) - generate_app_man(${target}) + generate_app_man(${target} "${CMAKE_PROJECT_DESCRIPTION} \\(GUI\\)") endif() diff --git a/src/apps/deskflow-server/CMakeLists.txt b/src/apps/deskflow-server/CMakeLists.txt index 9e48c12fb..09fcc4fe9 100644 --- a/src/apps/deskflow-server/CMakeLists.txt +++ b/src/apps/deskflow-server/CMakeLists.txt @@ -45,7 +45,7 @@ if(APPLE) ) elseif(UNIX) install(TARGETS ${target} DESTINATION bin) - generate_app_man(${target}) + generate_app_man(${target} "${CMAKE_PROJECT_DESCRIPTION} \\(Server\\)") elseif(WIN32) install( TARGETS ${target}