From: Daniel Kahn Gillmor Date: Tue, 20 Nov 2018 18:26:08 +0000 (-0500) Subject: doc: draw date in kresd.8 from NEWS X-Git-Tag: v3.2.0~30^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22fbe477393c478182ae210902c5c3e505e49cef;p=thirdparty%2Fknot-resolver.git doc: draw date in kresd.8 from NEWS Ideally, we'll just use the datestamp in the first line of NEWS directly. if we can't find that, then fall back to the timestamp of the file (which might be different on different machines because of how git applies updates). In any event, choose the datestamp using UTC, to avoid building a different kresd.8 depending on the TZ of the machine. --- diff --git a/daemon/daemon.mk b/daemon/daemon.mk index eef6e8e5b..e0d0000ce 100644 --- a/daemon/daemon.mk +++ b/daemon/daemon.mk @@ -53,7 +53,7 @@ endif $(eval $(call make_sbin,kresd,daemon,yes)) # Targets -date := $(shell date -r NEWS +%F) +date := $(shell head -n1 < NEWS | sed 's/.*(\(.*\)).*/\1/' | grep -E '^[0-9]{4}-[0-9]{2}-[0-9]{2}$$' || date -u -r NEWS +%F) daemon: $(kresd) $(kresd_DIST) daemon-install: kresd-install bindings-install ifneq ($(SED),)