diff options
author | John Rigby <john.rigby@linaro.org> | 2012-01-31 18:32:11 -0700 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-03-20 23:29:08 -0600 |
commit | f33d3ea92c9e0494de762a5f257461e0ae019940 (patch) | |
tree | 314f7d889d21b074a5e3a0fff81bb856b2128097 | |
parent | 249ff13ff6d16d653cdd0000db6616a53f1e379a (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-x | debian/rules | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules index 664cee5adf4..98999886ef9 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 \ |