From 859b266cceeca2224b9c558b9b31774efab26a33 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Mon, 25 May 2026 09:33:22 +0200 Subject: [PATCH] add manpage for feierabendxml --- src/CMakeLists.txt | 8 +++++++- src/feierabendxml.1 | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 src/feierabendxml.1 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 149de21..9ba46b4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -55,8 +55,13 @@ add_custom_target(changelog ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/changelog.De 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_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/feierabendxml.1.gz + COMMAND gzip --stdout --no-name --best ${CMAKE_CURRENT_SOURCE_DIR}/feierabendxml.1 + > ${CMAKE_CURRENT_BINARY_DIR}/feierabendxml.1.gz) -add_custom_target(manpages ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/feierabend.1.gz) +add_custom_target(manpages ALL + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/feierabend.1.gz + ${CMAKE_CURRENT_BINARY_DIR}/feierabendxml.1.gz) set(CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS OWNER_READ @@ -73,6 +78,7 @@ 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 + ${CMAKE_CURRENT_BINARY_DIR}/feierabendxml.1.gz DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1) set(CPACK_GENERATOR "DEB") diff --git a/src/feierabendxml.1 b/src/feierabendxml.1 new file mode 100644 index 0000000..1289498 --- /dev/null +++ b/src/feierabendxml.1 @@ -0,0 +1,38 @@ +.TH feierabendxml 1 2026-05-25 + +.SH NAME +feierabendxml - is a tool it calc work time and write to xml to stdout. It can pipe multiple feierabendxml. + +.SH SYNOPSIS +.P +.EX +feierabendxml version +feierabendxml init [ ] +feierabendxml add +feierabendxml dateadd +feierabendxml merge +.EE +.P + +.SH COMMANDS +.P +.EX +version print the program version +init init empty xml +add add one entry from current date +dateadd add an entry with one specific date +merge merge xmls from one directory together +.EE +.P + +.SH OPTIONS +.P +.EX +hour overtime hours +minutes overtime minutes +begin-hour worktime begin hour +begin-minutes worktime begin minutes +date date of work (format YYYY-mm-dd) +directory directroy contains xml to merge +.EE +.P \ No newline at end of file -- 2.47.3