From 36f808c0f365587ec21f0fb9927106a25dd2d18f Mon Sep 17 00:00:00 2001 From: John Rigby Date: Tue, 31 Jan 2012 18:32:11 -0700 Subject: LINARO: PACKAGING: preserve timestamps for files in debian give them the same times as the sources so multiple invocations of debuild -S will produce the same tarfile Signed-off-by: John Rigby --- debian/rules | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 0d87e2ccd93..77fee749611 100755 --- a/debian/rules +++ b/debian/rules @@ -59,10 +59,14 @@ clean: debian/control # This gets rid of the d-i packages in control cp -f $(DEBIAN)/control.stub $(DEBIAN)/control - cp $(DEBIAN)/changelog debian/changelog + cp -p $(DEBIAN)/changelog debian/changelog # Install the copyright information. - cp $(DEBIAN)/copyright debian/copyright + cp -p $(DEBIAN)/copyright debian/copyright + + touch -r $(DEBIAN)/control.stub.in $(DEBIAN)/control $(DEBIAN)/control.stub debian/control debian/control.stub + touch -r $(DEBIAN)/d-i/kernel-versions.in $(DEBIAN)/d-i/kernel-versions + touch -r $(DEBIAN)/changelog debian distclean: clean rm -rf $(DEBIAN)/control $(DEBIAN)/control.stub \ -- cgit v1.2.3