]> gitweb.hhaalo.de Git - feierabend.git/commitdiff
add manpage for feierabendxml
authorBastian Dehn <hhaalo@arcor.de>
Mon, 25 May 2026 07:33:22 +0000 (09:33 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 25 May 2026 07:33:22 +0000 (09:33 +0200)
src/CMakeLists.txt
src/feierabendxml.1 [new file with mode: 0644]

index 149de2115a6f9621e39ea3efb3732f1497549300..9ba46b4fbc3d4aadc4e8c088dbfb8124c730700b 100644 (file)
@@ -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 (file)
index 0000000..1289498
--- /dev/null
@@ -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 [<hour> <minutes>]
+feierabendxml add <begin-hour> <begin-minutes> <end-hour> <end-minutes>
+feierabendxml dateadd <date> <begin-hour> <begin-minutes> <end-hour> <end-minutes>
+feierabendxml merge <directory>
+.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