A Makefile => Makefile +16 -0
@@ 0,0 1,16 @@
+PREFIX=/usr/local
+MANPREFIX=$(PREFIX)/share/man
+
+all:
+ @echo "workinghours is a shell script, so there is nothing to do."
+ @echo "Try \"make install\" instead."
+
+.PHONY: install
+install: workinghours
+ mkdir -p $(PREFIX)/bin $(MANPREFIX)/man1
+ install workinghours $(PREFIX)/bin/
+ install -m 644 workinghours.1 $(MANPREFIX)/man1
+
+.PHONY: uninstall
+uninstall:
+ rm -f $(PREFIX)/bin/workinghours $(MANPREFIX)/man1/workinghours.1
M workinghours => workinghours +0 -1
@@ 25,7 25,6 @@ Mandatory arguments to long options are mandatory for short options too.
--no-attach do not attach to session (only with --init)
-s, --session NAME choose a session name (default: workinghours)
-c, --customer NAME save files in subfolder NAME
- -d, --day-sums show summarized hours per day
-w, --new-week HOURS archive the current database file with number of
last week into archive directory
HOURS is the amount of hours your were supposed
A workinghours.1 => workinghours.1 +71 -0
@@ 0,0 1,71 @@
+.TH WORKINGHOURS 1
+.SH NAME
+workinghours \- Log for how long you have been working
+.SH SYNOPSIS
+.B workinghours
+[
+.B \-s
+.I name
+]
+[
+.B \-v
+]
+.br
+.B workinghours
+[
+.B \-s
+.I name
+]
+.B \-i
+[
+.B \-\-no\-attach
+]
+[
+.B \-c
+.I name
+]
+.PP
+.B Warning:
+You have to detach before ending the session!
+Otherwise the last session duration will not be logged.
+.SH DESCRIPTION
+.I workinghours
+lets you log your workinghours by attaching/detaching to a tmux session.
+.PP
+Without any options or with \-\-session only print a status message.
+.SH OPTIONS
+.TP
+.B \-c, \-\-customer NAME
+save files in subfolder NAME
+.TP
+.B \-i, \-\-init
+set up a tmux session and attach
+.TP
+.B \-n, \-\-new\-week HOURS
+archive the current database file with number of last week
+into archive directory.
+HOURS is the amount of hours your were supposed to work
+.TP
+.B \-\-no\-attach
+do not attach to session (only with \-\-init)
+.TP
+.B \-s, \-\-session NAME
+choose a session name (default: workinghours)
+.TP
+.B \-v
+print the current database file with totals
+.TP
+.B \-w
+alias for \-n
+.TP
+.B \-h, \-\-help
+show this help
+.PP
+Any option can be combined with the \-\-session option.
+.SH BUGS
+You have to detach before ending the session!
+Otherwise the last session duration will not be logged.
+.SH AUTHOR
+Rene Kita <mail@rkta.de>
+.SH SEE ALSO
+tmux(1)