From adb1202ba5c1735e29534d8b669cd4ce93a7fe30 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Mon, 25 May 2026 08:37:44 +0200 Subject: [PATCH] add man page for feierabend --- src/CMakeLists.txt | 9 ++++++++- src/feierabend.1 | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 src/feierabend.1 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7422f38..149de21 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -50,9 +50,14 @@ target_link_libraries(${PROJECT_NAME}xml add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/changelog.Debian.gz COMMAND gzip --stdout --no-name --best ${CMAKE_CURRENT_SOURCE_DIR}/debian/changelog > ${CMAKE_CURRENT_BINARY_DIR}/changelog.Debian.gz) - add_custom_target(changelog ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/changelog.Debian.gz) +add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/feierabend.1.gz + COMMAND gzip --stdout --no-name --best ${CMAKE_CURRENT_SOURCE_DIR}/feierabend.1 + > ${CMAKE_CURRENT_BINARY_DIR}/feierabend.1.gz) + +add_custom_target(manpages ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/feierabend.1.gz) + set(CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE @@ -67,6 +72,8 @@ install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}xml install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/debian/copyright ${CMAKE_CURRENT_BINARY_DIR}/changelog.Debian.gz DESTINATION ${CMAKE_INSTALL_DOCDIR}) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/feierabend.1.gz + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1) set(CPACK_GENERATOR "DEB") set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) diff --git a/src/feierabend.1 b/src/feierabend.1 new file mode 100644 index 0000000..7e397ba --- /dev/null +++ b/src/feierabend.1 @@ -0,0 +1,18 @@ +.TH feierabend 1 2026-05-25 + +.SH NAME +feierabend - is a tool it calc and print the time to work end time +without break time. + +.SH SYNOPSIS +feierabend [ ] + +.SH OPTIONS +.P +.EX + time to begin hour value from 1 to 23 + time to begin minutes value from 0 to 59 + time to end hour value from 1 to 23 + time to end minutes value from 0 to 59 +.EE +.P \ No newline at end of file -- 2.47.3