]> git.ipfire.org Git - thirdparty/automake.git/commit
mdate-sh: support $SOURCE_DATE_EPOCH.
authorKarl Berry <karl@freefriends.org>
Tue, 20 May 2025 16:17:04 +0000 (09:17 -0700)
committerKarl Berry <karl@freefriends.org>
Tue, 20 May 2025 16:17:04 +0000 (09:17 -0700)
commitb78b70612b83632d9f1256e4fa4c69c33f81a5f8
tree72defceb173ecafffc29171810fb74f964f6893b
parent68da133f18aeddfc0e655b3fdc6d0242e45182d9
mdate-sh: support $SOURCE_DATE_EPOCH.

From https://bugs.gnu.org/77805.

* lib/mdate-sh: if $SOURCE_DATE_EPOCH is set, use it
instead of the mtime of any file. Debian was removing
@value{UPDATED}, etc., from manuals because of varying output.
Try date --date, then date -r, then perl gmtime, then
fall back to the file's mtime.
Also, warn if more than one file argument is given.
(mon_to_month): factor out conversion of Jan to January.
* t/mdate5.sh: test it.
* doc/automake.texi (Texinfo): mention it.
* NEWS: mention it.
NEWS
doc/automake.texi
lib/mdate-sh
t/mdate5.sh