From 57f1f29b500d5f6e8531b332f7619a1972a2976f Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 23 May 2015 20:13:18 +0200 Subject: [PATCH 079/257] contrib/groff/mdate.sh: Use ${EPOCH_DATE} when set While this is silly, using the time the man pages have been last checked out from the VCS is silly as well, so this commit doesn't increase the total amount of sillyness in the system. Also we are talking about GNU roff here, so hopefully this stuff will be garbage-collected in the near future. Obtained from: ElectroBSD --- contrib/groff/mdate.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/groff/mdate.sh b/contrib/groff/mdate.sh index 4a26e6e80bad..615abc784123 100755 --- a/contrib/groff/mdate.sh +++ b/contrib/groff/mdate.sh @@ -1,12 +1,17 @@ #! /bin/sh # Print the modification date of $1 `nicely'. +# If ${EPOCH_DATE} is set, it will be used instead. # Don't want foreign dates. LANGUAGE= LC_ALL=C; export LC_ALL +if [ -n "${EPOCH_DATE}" ]; then + date -r "${EPOCH_DATE}" +"%d %B %Y" + exit 0 +fi (date; if ls -L /dev/null 1>/dev/null 2>&1; then ls -L -l $1; else ls -l $1; fi -- 2.11.0