From ef6396807288ea0f635ab50bc789a162b84c67ba Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 12 Jul 2019 20:34:45 +0200 Subject: [PATCH 1/1] Makefile: Get rid of superfluous '+' character in date. Commit bb3a974325f (Don't embed compile-time timestamps into generated files) from a couple of weeks ago introduced a leading '+' in case SOURCE_DATE_EPOCH is not set because DATE_FMT already contains the '+' character for the argument to date(1), The superfluous '+' becomes part of the generated man pages, which looks a bit weird. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3c7bde2..d1f89b1 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ ifdef SOURCE_DATE_EPOCH DATE := $(shell LC_ALL=C date -u -d '@$(SOURCE_DATE_EPOCH)' \ '$(DATE_FMT)' 2>/dev/null || LC_ALL=C date -u '$(DATE_FMT)') else - DATE := $(shell date '+$(DATE_FMT)') + DATE := $(shell date '$(DATE_FMT)') endif GIT_VERSION := $(shell ./version-gen.sh) PLAIN_VERSION := $(firstword $(subst -, , $(GIT_VERSION))) -- 2.30.2