[Kernel-handbook-general] [PATCH 7/7] Automatically update version.ent based on the changelog

Ben Hutchings ben at decadent.org.uk
Sun Jun 3 17:42:40 UTC 2012


---
 Makefile    |    2 +-
 version.ent |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 6fcfa0c..0612b20 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-version := 1.0.12
+version := $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p')
 date    := $(shell date)
 
 all: version.ent
diff --git a/version.ent b/version.ent
index db2e7f1..4203acb 100644
--- a/version.ent
+++ b/version.ent
@@ -1,2 +1,2 @@
-<!entity version "1.0.12">
-<!entity date    "Wed Sep 28 15:38:16 BST 2011">
+<!entity version "1.0.13">
+<!entity date    "Sun Jun  3 18:41:02 BST 2012">
-- 
1.7.10


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/kernel-handbook-general/attachments/20120603/840c7d4c/attachment.pgp>


More information about the Kernel-handbook-general mailing list