aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--README10
-rw-r--r--config.mk4
-rw-r--r--timeprefix.18
4 files changed, 12 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index fb6b061..8c56f0f 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ uninstall:
-rm -- "$(DESTDIR)$(MANPREFIX)/man1/timeprefix.1"
clean:
- -rm -f -- timeprefix *.o
+ -rm -f -- timeprefix *.o *.su
.SUFFIXES:
.SUFFIXES: .o .c
diff --git a/README b/README
index 8efcca2..b945e87 100644
--- a/README
+++ b/README
@@ -5,13 +5,13 @@ SYNOPSIS
timeprefix
DESCRIPTION
- timeprefix reads stdin line by line and prefix the current time
- (at the point the line has been fully read) to each line and
- prints the prefixed line to stdout.
+ timeprefix reads stdin line by line and prefixes the current
+ time (at the point the line has been fully read) to each line
+ and prints the prefixed line to stdout.
The timestamp is written in both decimal boot time and
human-readable real time (in UTC), with the boot time first so
- that muliple generated log files can merged into one with
- sort --merge.
+ that multiple generated log files can be merged into one with
+ sort -m.
timeprefix also marks when the program started and terminated.
diff --git a/config.mk b/config.mk
index 5cdd0d5..52f995f 100644
--- a/config.mk
+++ b/config.mk
@@ -1,8 +1,8 @@
PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man
-CC = cc
+CC = c99
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
-CFLAGS = -std=c99 -Wall -O2
+CFLAGS =
LDFLAGS =
diff --git a/timeprefix.1 b/timeprefix.1
index 593ed4f..716c1ee 100644
--- a/timeprefix.1
+++ b/timeprefix.1
@@ -5,16 +5,16 @@ timeprefix \- Prefix the current time to each line
.B timeprefix
.SH DESCRIPTION
.B timeprefix
- reads stdin line by line and prefix the current time
+ reads stdin line by line and prefixes the current time
(at the point the line has been fully read) to each
line and prints the prefixed line to stdout.
.PP
The timestamp is written in both decimal boot time
and human-readable real time (in UTC), with the
-boot time first so that muliple generated log files
-can merged into one with
+boot time first so that multiple generated log files
+can be merged into one with
.B sort
-.BR --merge .
+.BR -m .
.PP
.B timeprefix
also marks when the program started and terminated.