]> gitweb.hhaalo.de Git - feierabend.git/commitdiff
add man page for feierabend
authorBastian Dehn <hhaalo@arcor.de>
Mon, 25 May 2026 06:37:44 +0000 (08:37 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 25 May 2026 06:37:44 +0000 (08:37 +0200)
src/CMakeLists.txt
src/feierabend.1 [new file with mode: 0644]

index 7422f38510de7c3b9b503094afb6481c293ccbd6..149de2115a6f9621e39ea3efb3732f1497549300 100644 (file)
@@ -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 (file)
index 0000000..7e397ba
--- /dev/null
@@ -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 <begin-hour> <begin-minutes> [<end-hour> <end-minutes>]
+
+.SH OPTIONS
+.P
+.EX
+<begin-hour>      time to begin hour value from 1 to 23
+<begin-minutes>   time to begin minutes value from 0 to 59
+<end-hour>        time to end hour value from 1 to 23
+<end-minutes>     time to end minutes value from 0 to 59
+.EE
+.P
\ No newline at end of file