From: =?utf-8?b?0L3QsNCx?= <nabijaczleweli@nabijaczleweli.xyz>
Date: Sat, 9 Nov 2024 04:15:45 +0100
Subject: Reproducible date in manual. No man-db dependency for manual section

Forwarded: not-needed
---
 man/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/Makefile b/man/Makefile
index bb3e5c0..85f85c9 100644
--- a/man/Makefile
+++ b/man/Makefile
@@ -21,8 +21,8 @@ endif
 		$(eval SECTION := $(subst .,,$(suffix $@)))
 		$(eval BASENAME := $(basename $@))
 		$(eval TITLE := $(shell echo "${BASENAME}\(${SECTION}\)" | tr [:lower:] [:upper:]))
-		$(eval HEADER := "$(shell man ${SECTION} intro | head -1 | sed -e 's/^[^[:blank:]]*[[:blank:]]*//' -e 's/[[:blank:]]*[^[:blank:]]*$$//' )")
-		$(PANDOC) -standalone -M title=${TITLE} -M section=${SECTION} -M header=${HEADER} -M footer=${PANDOC_ORG} -M "date=`date +\"%B %Y\"`" --to man $< >> $@
+		$(eval HEADER := "General Commands Manual")
+		$(PANDOC) -standalone -M title=${TITLE} -M section=${SECTION} -M header=${HEADER} -M footer=${PANDOC_ORG} -M "date=`LC_ALL=C date -d@$(SOURCE_DATE_EPOCH) +\"%B %Y\"`" --to man $< >> $@
 # workaround for boldface rendering
 		sed -i -e 's/\\f\[CR\]/\\f\[CB\]/g' $@ || true
 		echo "$@ manpage updated" >&2
