There is another tiny little problem with your patch:
It presumes that the man page templates are used exclusively by autogen.
That is very, very incorrect.  There are quite a few projects that use
AutoOpts.  If you want to dig into the template and figure out how to
*PORTABLY* derive a date command invocation that references the time stamp
on a source file, please feel free.  All the world is not GNU.
"-d @${TIME_IN_SECONDS}" is not portable.

    http://pubs.opengroup.org/onlinepubs/009604599/utilities/date.html

I would recommend some post-processing step of some sort if you want
to have man pages be stamped with a date different from the current date.
And you missed a few:

$ grep -E 'shell.*date' *.tpl
agman-cmd.tpl: (shell "date '+%d %b %Y'") package-text section-name) ))
agman-file.tpl: (shell "date '+%d %b %Y'") package-text section-name) ))
agmdoc-cmd.tpl: ".Dd " (shell "date '+%B %e %Y' | sed 's/ */ /g'")
agmdoc-file.tpl: ".Dd " (shell "date '+%B %e %Y' | sed 's/ */ /g'")
def2pot.tpl:# Copyright (C) [= (shell "date +%Y") =][=
def2pot.tpl:"POT-Creation-Date: [= (shell "date +\"%F %R%z\"") =]\n"

So in theory, producing a byte-for-byte repeatable build sounds nice,
but first there are practical problems that must be resolved.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to