help-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-tar] [PATCH] Add --clamp-mtime option


From: Jakob Bohm
Subject: Re: [Help-tar] [PATCH] Add --clamp-mtime option
Date: Mon, 08 Jun 2015 16:31:59 +0200
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

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 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]