summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-02-04 21:36:12 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-02-18 20:48:22 +0100
commit428daca88dbb97f7ba68b70e862d3a7ff2c63ef3 (patch)
tree9e6ee831488553d3f80a9bbef449704075a933cc
parent78731113b5503856bd3c9ed6c02f76b101f82f6a (diff)
manpages: Set date to release date instead of build date
This should also help distributions working towards reproducible builds.
-rw-r--r--Makefile2
-rw-r--r--config.mk1
-rw-r--r--man/Makefile2
3 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9f90891..160c523 100644
--- a/Makefile
+++ b/Makefile
@@ -97,6 +97,8 @@ dist:
cp src/deps.mk /tmp/feh-${VERSION}/src/deps.mk
sed -i 's/^VERSION ?= .*$$/VERSION ?= ${VERSION}/' \
/tmp/feh-${VERSION}/config.mk
+ sed -i 's/^MAN_DATE ?= .*$$/MAN_DATE ?= ${MAN_DATE}/' \
+ /tmp/feh-${VERSION}/config.mk
tar -C /tmp -cjf ../feh-${VERSION}.tar.bz2 feh-${VERSION}
rm -r /tmp/feh-${VERSION}
diff --git a/config.mk b/config.mk
index a7356c8..abcb6d8 100644
--- a/config.mk
+++ b/config.mk
@@ -64,6 +64,7 @@ else
MAN_EXIF = disabled
endif
+MAN_DATE ?= ${shell date '+%B %d, %Y'}
# Uncomment this to use dmalloc
#CFLAGS += -DWITH_DMALLOC
diff --git a/man/Makefile b/man/Makefile
index 1927963..65f2bc2 100644
--- a/man/Makefile
+++ b/man/Makefile
@@ -8,7 +8,7 @@ all: ${TARGETS}
.pre.1:
sed \
-e 's/\$$VERSION\$$/${VERSION}/g' \
- -e 's/\$$DATE\$$/'"$$(date '+%B %d, %Y')"/g \
+ -e 's/\$$DATE\$$/${MAN_DATE}/g' \
-e 's/\$$MAN_CURL\$$/${MAN_CURL}/' \
-e 's/\$$MAN_DEBUG\$$/${MAN_DEBUG}/' \
-e 's/\$$MAN_EXIF\$$/${MAN_EXIF}/' \