On 05/06/2015 02:02, Paul Eggert wrote:
Jérémy Bobbio wrote:
We use BUILD_DATE="$(dpkg-parsechangelog -S Date)" to get the time of
the latest debian/changelog entry. Other projects could use
BUILD_DATE="$(git log -1 --pretty="%cd")".
Hah! I use "git log -1 --format='tformat:%ct'" for this situation in
the tzcode distribution. Great minds think (nearly) alike.
I guess I'm not still seeing why it's a win to add an option to tar,
since we seem to have a solution that doesn't involve messing with tar.
Backdating the compile output with touch may have a negative impact on
doing a make (not a full rebuild) while trying to fix a bug in the
package. --clamp-mtime restricts the time stamp manipulation to the
contents of the .deb / .udeb / .tar.xz files .
Enjoy
Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S. https://www.wisemo.com
Transformervej 29, 2860 Søborg, Denmark. Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded