diff options
author | John Rigby <john.rigby@linaro.org> | 2012-01-31 18:32:11 -0700 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-06-24 16:24:58 -0600 |
commit | b27529a9357b29260dba228ab8b18a44a1496545 (patch) | |
tree | 0da6ea5acbaebc7213cf2eaa88aba76c81866fa4 | |
parent | 90ceafcc480c43292fa1860aeb854d56ea979d86 (diff) |
LINARO: add ability to timestamp source package version in debian/changelog
enable with do_timestamp_version=true on fdr (fakeroot ./debian/rules) commandline:
fdr clean do_timestamp_version=true
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rwxr-xr-x | debian/rules | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index c348f3acb31..0cd4c1c2fd5 100755 --- a/debian/rules +++ b/debian/rules @@ -59,7 +59,12 @@ clean: debian/control # This gets rid of the d-i packages in control cp -f $(DEBIAN)/control.stub $(DEBIAN)/control +ifeq ($(do_timestamp_version),true) + cat $(DEBIAN)/changelog | \ + sed -e "1 s/)/~$$(date --utc +%y%m%d%H%M%S))/" > debian/changelog +else cp $(DEBIAN)/changelog debian/changelog +endif # Install the copyright information. cp $(DEBIAN)/copyright debian/copyright |