aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2012-01-31 18:32:11 -0700
committerLinaro CI <john.rigby@linaro.org>2012-02-07 22:54:17 +0000
commit36f808c0f365587ec21f0fb9927106a25dd2d18f (patch)
tree1d715e985145a5c053fe2c9b89a8bab5ef8a3f10
parent2e3e736a9a1dbe5ecebc11d8d0d32f81aeb1794d (diff)
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 <john.rigby@linaro.org>
-rwxr-xr-xdebian/rules8
1 files 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 \