Date:2010-12-08 20:48:17 (9 years 6 months ago)
Author:Jiri Brozovsky
Commit:d02893d336674842d6be4916b9b799433d2c07c0
Message:Small command line time tracker - openwrt port, patched for better help message.

Files: wtime/Makefile (1 diff)
wtime/patches/config.patch (1 diff)
wtime/patches/wtime.patch (1 diff)

Change Details

wtime/Makefile
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=wtime
4PKG_VERSION:=0.2
5PKG_RELEASE:=2
6
7PKG_SOURCE:=wtime_0_2.tar.gz
8PKG_SOURCE_URL:=@SF/wtime
9PKG_MD5SUM:=59c2d41048706993ca260afcdab337c3
10PKG_CAT:=zcat
11
12PKG_BUILD_DIR:=$(BUILD_DIR)/wtime
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/wtime
17    SECTION:=utils
18    CATEGORY:=Utilities
19    DEPENDS:=
20    TITLE:=WTime time tracker
21    URL:=http://wtime.sourceforge.net
22endef
23
24define Package/wtime/description
25  Time tracking command-line utility.
26endef
27
28define Build/Configure
29        $(call Build/Compile/Default, \
30        )
31endef
32
33
34define Package/wtime/install
35    $(INSTALL_DIR) $(1)/usr/bin/
36    $(INSTALL_BIN) $(PKG_BUILD_DIR)/wtime $(1)/usr/bin/
37    $(INSTALL_DIR) $(1)/root/.wtimed/
38    $(INSTALL_DIR) $(1)/usr/share/
39    $(INSTALL_DIR) $(1)/usr/share/wtime/
40    $(INSTALL_BIN) $(PKG_BUILD_DIR)/LICENCE $(1)/usr/share/wtime/
41endef
42
43$(eval $(call BuildPackage,wtime))
wtime/patches/config.patch
1--- wtime/config.mk 2006-06-17 14:30:50.000000000 +0200
2@@ -1,17 +1,11 @@
3 # Customize to fit your system
4
5-PREFIX = /usr/local
6+INCLUDES = -I.
7+LIBS =
8
9-INCDIR = ${PREFIX}/include
10-LIBDIR = ${PREFIX}/lib
11+CFLAGS = -std=c99 -O2
12+LDFLAGS =
13
14-INCLUDES = -I. -I${INCDIR} -I/usr/include
15-LIBS = -L${LIBDIR} -L/usr/lib -lc
16-
17-CFLAGS = -std=c99 -O2 ${INCLUDES}
18-LDFLAGS = ${LIBS}
19-
20-CC = gcc
21 CP = cp -f
22 RM = rm -f
23 MKDIR = mkdir
wtime/patches/wtime.patch
1--- wtime/wtime.c 2006-06-17 14:29:37.000000000 +0200
2@@ -10,7 +10,8 @@
3
4 typedef enum { EMPTY, STARTED, STOPPED, UNKNOWN } Tstate;
5
6-char usage[] = "wt [-t task] [-h|-a|-s|-c|-r [<start>[<end>]]]\nFor more info see the man page.\n";
7+//char usage[] = "wt [-t task] [-h|-a|-s|-c|-r [<start>[<end>]]]\nFor more info see the man page.\n";
8+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";
9
10 static int fgetlastl(FILE * fd, char *lbuf, int size)
11 {

Archive Download the corresponding diff file



interactive