diff options
author | Bernhard M. Wiedemann <bwiedemann@suse.de> | 2020-09-30 07:30:58 +0200 |
---|---|---|
committer | Bernhard M. Wiedemann <bwiedemann@suse.de> | 2020-09-30 07:41:10 +0200 |
commit | e65c6d042be83c8a0feacadd15f1bb027d020745 (patch) | |
tree | 62adcec01e0c8d94cb5384de3f4d7b6e629a0339 | |
parent | 15b3dda7be301f1da93f298990a7cf9e6c10ad63 (diff) | |
download | libnet-e65c6d042be83c8a0feacadd15f1bb027d020745.tar.gz |
Make man-page generation reproducible
For this we behave similar to pod2man and use the input file mtime.
Also adapt date format to what doxygen-1.8.20 produces
to make the comment above true again.
LC_ALL=C is used so that %B is independent of language.
Also use UTC to be independent of timezone.
This patch was done while working on reproducible builds for openSUSE.
-rw-r--r-- | doc/fixmanpages.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/fixmanpages.in b/doc/fixmanpages.in index ed2c920..1e12dd4 100644 --- a/doc/fixmanpages.in +++ b/doc/fixmanpages.in @@ -32,10 +32,10 @@ test -d $MANDIR/man3 || die "Could not locate $MANDIR/man3 directory." find $MANDIR/man3/ -name "libnet.h.3" -exec sh -c 'rm -f "$1"' _ {} \; # Let's create libnet.3 before dealing with the rest. -# BTW: We're using this hideous date format because Doxygen generated man +# BTW: We're using this date format because Doxygen generated man # pages have them set like this and our date format shouldn't look different. -pod2man -d "$(date +%a\ %b\ %d\ %C%y)" -n LIBNET -c "libnet Programmers Guide" -s 3 -r "@PACKAGE_NAME@-@PACKAGE_VERSION@" @top_srcdir@/doc/libnet.Pod man/man3/libnet.3 || die "Could not create libnet.3 in $MANDIR/man/man3." +pod2man -d "$(LC_ALL=C date -u -r @top_srcdir@/doc/libnet.Pod +%d\ %B\ %Y)" -n LIBNET -c "libnet Programmers Guide" -s 3 -r "@PACKAGE_NAME@-@PACKAGE_VERSION@" @top_srcdir@/doc/libnet.Pod man/man3/libnet.3 || die "Could not create libnet.3 in $MANDIR/man/man3." # pod2html --title="libnet Programmers Guide" --noindex --infile=libnet.Pod --outfile=libnet.html |