1 Return-Path: <tomi.ollila@nixu.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 74048429E21
\r
6 for <notmuch@notmuchmail.org>; Mon, 21 Nov 2011 08:34:26 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 6ohzUAoSNfSv for <notmuch@notmuchmail.org>;
\r
16 Mon, 21 Nov 2011 08:34:26 -0800 (PST)
\r
17 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])
\r
18 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id D3EFB431FD0
\r
21 for <notmuch@notmuchmail.org>; Mon, 21 Nov 2011 08:34:25 -0800 (PST)
\r
22 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])
\r
23 by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
\r
25 for <notmuch@notmuchmail.org>; Mon, 21 Nov 2011 18:34:24 +0200
\r
26 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
27 To: notmuch@notmuchmail.org
\r
28 Subject: [PATCH] make release: use sed to check debian version
\r
29 In-Reply-To: <yf6bos58o7r.fsf@taco2.nixu.fi>
\r
30 References: <yf6bos58o7r.fsf@taco2.nixu.fi>
\r
31 User-Agent: Notmuch/0.10~rc1+16~gc832dad (http://notmuchmail.org) Emacs/23.3.1
\r
33 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
34 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
35 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
36 Date: Mon, 21 Nov 2011 18:34:24 +0200
\r
37 Message-ID: <yf662id5t9r.fsf@taco2.nixu.fi>
\r
39 Content-Type: text/plain; charset=us-ascii
\r
40 X-BeenThere: notmuch@notmuchmail.org
\r
41 X-Mailman-Version: 2.1.13
\r
43 List-Id: "Use and development of the notmuch mail system."
\r
44 <notmuch.notmuchmail.org>
\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
48 List-Post: <mailto:notmuch@notmuchmail.org>
\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
52 X-List-Received-Date: Mon, 21 Nov 2011 16:34:26 -0000
\r
54 Use common sed tool instead of dpkg-parsechangelog (which is usually
\r
55 available on debian systems only) to verify that debian version
\r
56 information is consistent with version file.
\r
58 Makefile.local | 2 +-
\r
59 1 files changed, 1 insertions(+), 1 deletions(-)
\r
61 diff --git a/Makefile.local b/Makefile.local
\r
62 index 02afdd0..c94402b 100644
\r
63 --- a/Makefile.local
\r
64 +++ b/Makefile.local
\r
65 @@ -207,7 +207,7 @@ endif
\r
66 .PHONY: verify-version-debian
\r
67 verify-version-debian: verify-version-components
\r
68 @echo -n "Checking that Debian package version is $(VERSION)-1..."
\r
69 - @[ "$(VERSION)-1" = $$(dpkg-parsechangelog | grep ^Version | awk '{print $$2}') ] || \
\r
70 + @[ "$(VERSION)-1" = $$(sed '1{ s/).*//; s/.*(//; q; }' debian/changelog) ] || \
\r
72 echo "Please edit version and debian/changelog to have consistent versions." && false)
\r