From: Andre Noll Date: Fri, 12 Jul 2019 18:34:45 +0000 (+0200) Subject: Makefile: Get rid of superfluous '+' character in date. X-Git-Tag: v1.0.4~11 X-Git-Url: http://git.tuebingen.mpg.de/?p=lopsub.git;a=commitdiff_plain;h=ef6396807288ea0f635ab50bc789a162b84c67ba;hp=0a8299dd8da7dba7437550d12bf180d9e10d512b 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. --- 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)))