summaryrefslogtreecommitdiff
path: root/wtime/patches
diff options
context:
space:
mode:
Diffstat (limited to 'wtime/patches')
-rw-r--r--wtime/patches/config.patch24
-rw-r--r--wtime/patches/wtime.patch12
2 files changed, 36 insertions, 0 deletions
diff --git a/wtime/patches/config.patch b/wtime/patches/config.patch
new file mode 100644
index 0000000..af3017f
--- /dev/null
+++ b/wtime/patches/config.patch
@@ -0,0 +1,24 @@
+--- wtime/config.mk 2006-06-17 14:30:50.000000000 +0200
++++ wtimem/config.mk 2010-12-08 20:11:42.933802915 +0100
+@@ -1,17 +1,11 @@
+ # Customize to fit your system
+
+-PREFIX = /usr/local
++INCLUDES = -I.
++LIBS =
+
+-INCDIR = ${PREFIX}/include
+-LIBDIR = ${PREFIX}/lib
++CFLAGS = -std=c99 -O2
++LDFLAGS =
+
+-INCLUDES = -I. -I${INCDIR} -I/usr/include
+-LIBS = -L${LIBDIR} -L/usr/lib -lc
+-
+-CFLAGS = -std=c99 -O2 ${INCLUDES}
+-LDFLAGS = ${LIBS}
+-
+-CC = gcc
+ CP = cp -f
+ RM = rm -f
+ MKDIR = mkdir
diff --git a/wtime/patches/wtime.patch b/wtime/patches/wtime.patch
new file mode 100644
index 0000000..9f75b66
--- /dev/null
+++ b/wtime/patches/wtime.patch
@@ -0,0 +1,12 @@
+--- wtime/wtime.c 2006-06-17 14:29:37.000000000 +0200
++++ wtimem/wtime.c 2010-12-08 20:20:18.692552915 +0100
+@@ -10,7 +10,8 @@
+
+ typedef enum { EMPTY, STARTED, STOPPED, UNKNOWN } Tstate;
+
+-char usage[] = "wt [-t task] [-h|-a|-s|-c|-r [<start>[<end>]]]\nFor more info see the man page.\n";
++//char usage[] = "wt [-t task] [-h|-a|-s|-c|-r [<start>[<end>]]]\nFor more info see the man page.\n";
++char usage[] = "wt [-t task] [-h|-a|-s|-c|-r [<start>[<end>]]]\nExamples:\n wt -a ... start counting\n wt -s ... stop counting\n wt -c ... show running time in seconds\n wt -r ... show spent time in seconds\n";
+
+ static int fgetlastl(FILE * fd, char *lbuf, int size)
+ {