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-21 05:14:34 -0600 |
commit | 8923e5af078316f5c29c39268e024c07789ff5f3 (patch) | |
tree | ca26050d9a77be86e03cf3fdfee4e74cb8bf9e56 | |
parent | 0ade02d74abf4b206b9a0587fca2262c30eea8ce (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..783e64ccc4e 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/)/~$$(printf %x $$(date +%s)))/" > debian/changelog +else cp $(DEBIAN)/changelog debian/changelog +endif # Install the copyright information. cp $(DEBIAN)/copyright debian/copyright |