aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2012-02-02 16:42:32 -0700
committerJohn Rigby <john.rigby@linaro.org>2012-03-20 23:29:11 -0600
commitbf9c30bc2af9e9b0e3d3d27a3852daa531024f59 (patch)
tree93072a5bf027f01472d7fb96e598fec023ea7d64
parentf33d3ea92c9e0494de762a5f257461e0ae019940 (diff)
LINARO: add ability to timestamp source package name in debian/changelog
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rwxr-xr-xdebian/rules9
1 files changed, 4 insertions, 5 deletions
diff --git a/debian/rules b/debian/rules
index 98999886ef9..eda4790adf4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,8 @@
#
DEBIAN=$(shell awk -F= '($$1 == "DEBIAN") { print $$2 }' <debian/debian.env)
+TIMESTAMP:=$(shell printf %x $$(date +%s))
+_DUMMY:=$(shell sed -i -e '1 s/%TIMESTAMP%/$(TIMESTAMP)/' $(DEBIAN)/changelog)
# dpkg-buildpackage passes options that are incomptatible
# with the kernel build.
@@ -59,15 +61,12 @@ clean: debian/control
# This gets rid of the d-i packages in control
cp -f $(DEBIAN)/control.stub $(DEBIAN)/control
- cp -p $(DEBIAN)/changelog debian/changelog
+ cat $(DEBIAN)/changelog debian/changelog | \
+ sed -e '1 s/%TIMESTAMP%/$(TIMESTAMP)/' > debian/changelog
# Install the copyright information.
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 \
$(DEBIAN)/d-i/kernel-versions debian/changelog \