]> git.ipfire.org Git - thirdparty/suricata.git/commit
configure: export release date for documentation
authorJason Ish <jason.ish@oisf.net>
Mon, 1 Apr 2024 16:37:49 +0000 (10:37 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 4 Apr 2024 13:50:25 +0000 (15:50 +0200)
commitb58dd5e5855864217fe898b43a3e8f9aaff47ae9
tree35d2ee7742db630af4ca56abdb8dc553cbaad211
parent51bf1c35103261d075a283d103371a2d9a8a76f7
configure: export release date for documentation

Sphinx embeds a date in the generated man pages, and to provide
reproducible builds this date needs to be provided to Sphinx,
otherwise it will use the current date.

If building from Git, extract the date from the most recent commit. In
a release, this commit would be the commit that sets the version so is
accurate.

If .git does not exist, use the most recent data found in the
ChangeLog.

The ChangeLog is not used when building from git, as the main/master
branch may not have recent enough timestamps.

This should provide a consistent date when re-building the
distribution from the same non-git archive, or from the same git
commit.

Ticket: #6911
configure.ac