From 55f7a14b2e4001b11fad81812ab6bfd448bea038 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 12:56:37 +0100 Subject: m fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 2 +- README | 10 +++++----- config.mk | 4 ++-- timeprefix.1 | 8 ++++---- 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. -- cgit v1.2.3-70-g09d2