1 Return-Path: <too@guru-group.fi>
\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 6765C431FD0
\r
6 for <notmuch@notmuchmail.org>; Wed, 4 Dec 2013 09:39:17 -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 YWWn5WH6lmHF for <notmuch@notmuchmail.org>;
\r
16 Wed, 4 Dec 2013 09:39:10 -0800 (PST)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id B9EF6431FC2
\r
19 for <notmuch@notmuchmail.org>; Wed, 4 Dec 2013 09:39:10 -0800 (PST)
\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)
\r
21 id 95B4E1001E5; Wed, 4 Dec 2013 19:39:00 +0200 (EET)
\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
23 To: notmuch@notmuchmail.org
\r
24 Subject: [PATCH 1/1] devel/release-checks.sh: adjust to LIBNOTMUCH version
\r
26 Date: Wed, 4 Dec 2013 19:38:59 +0200
\r
27 Message-Id: <1386178739-17475-1-git-send-email-tomi.ollila@iki.fi>
\r
28 X-Mailer: git-send-email 1.8.0
\r
29 In-Reply-To: <1386173986-9624-1-git-send-email-amdragon@mit.edu>
\r
30 References: <1386173986-9624-1-git-send-email-amdragon@mit.edu>
\r
31 Cc: tomi.ollila@iki.fi
\r
32 X-BeenThere: notmuch@notmuchmail.org
\r
33 X-Mailman-Version: 2.1.13
\r
35 List-Id: "Use and development of the notmuch mail system."
\r
36 <notmuch.notmuchmail.org>
\r
37 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
38 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
39 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
40 List-Post: <mailto:notmuch@notmuchmail.org>
\r
41 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
42 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
43 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
44 X-List-Received-Date: Wed, 04 Dec 2013 17:39:17 -0000
\r
46 NOTMUCH_VERSION_* macros in lib/notmuch.h are replaced with
\r
47 LIBNOTMUCH_VERSION_* macros. Check that the values of those
\r
48 match the LIBNOTMUCH_*_VERSION values in lib/Makefile.local.
\r
50 devel/release-checks.sh | 41 ++++++++++++++++++++---------------------
\r
51 1 file changed, 20 insertions(+), 21 deletions(-)
\r
53 diff --git a/devel/release-checks.sh b/devel/release-checks.sh
\r
54 index d6410ad..7be57df 100755
\r
55 --- a/devel/release-checks.sh
\r
56 +++ b/devel/release-checks.sh
\r
57 @@ -77,37 +77,36 @@ case $VERSION in
\r
58 *) verfail "'$VERSION' is a single number" ;;
\r
61 -_set_version_components ()
\r
65 - VERSION_MICRO=${3:-0} # set to 0 in case $3 is unset or "null" (string)
\r
67 +echo -n "Checking that LIBNOTMUCH version macros & variables match ... "
\r
69 +LIBNOTMUCH_MAJOR_VERSION=broken
\r
70 +LIBNOTMUCH_MINOR_VERSION=broken
\r
71 +LIBNOTMUCH_MICRO_VERSION=broken
\r
72 +# lib/Makefile.local
\r
73 +LIBNOTMUCH_VERSION_MAJOR=broken
\r
74 +LIBNOTMUCH_VERSION_MINOR=broken
\r
75 +LIBNOTMUCH_VERSION_RELEASE=broken
\r
77 +eval `awk 'NF == 3 && $1 == "#define" && $2 ~ /^LIBNOTMUCH_[A-Z]+_VERSION$/ \
\r
78 + && $3 ~ /^[0-9]+$/ { print $2 "=" $3 }' lib/notmuch.h`
\r
81 -_set_version_components $VERSION
\r
83 +eval `awk 'NF == 3 && $1 ~ /^LIBNOTMUCH_VERSION_[A-Z]+$/ && $2 == "=" \
\r
84 + && $3 ~ /^[0-9]+$/ { print $1 "=" $3 }' lib/Makefile.local`
\r
86 -echo -n "Checking that libnotmuch version macros match $VERSION... "
\r
87 -NOTMUCH_MAJOR_VERSION=broken
\r
88 -NOTMUCH_MINOR_VERSION=broken
\r
89 -NOTMUCH_MICRO_VERSION=broken
\r
90 -eval `awk 'NF == 3 && $1 == "#define" && $2 ~ /^NOTMUCH_[A-Z]+_VERSION$/ \
\r
91 - && $3 ~ /^[0-9]+$/ { print $2 "=" $3 }' lib/notmuch.h`
\r
93 check_version_component ()
\r
95 - eval local v1=\$VERSION_$1
\r
96 - eval local v2=\$NOTMUCH_$1_VERSION
\r
97 + eval local v1=\$LIBNOTMUCH_$1_VERSION
\r
98 + eval local v2=\$LIBNOTMUCH_VERSION_$2
\r
100 - then append_emsg "NOTMUCH_$1_VERSION is defined as '$v2' in lib/notmuch.h instead of '$v1'"
\r
101 + then append_emsg "LIBNOTMUCH_$1_VERSION ($v1) does not equal LIBNOTMUCH_VERSION_$2 ($v2)"
\r
105 old_emsg_count=$emsg_count
\r
106 -check_version_component MAJOR
\r
107 -check_version_component MINOR
\r
108 -check_version_component MICRO
\r
109 +check_version_component MAJOR MAJOR
\r
110 +check_version_component MINOR MINOR
\r
111 +check_version_component MICRO RELEASE
\r
112 [ $old_emsg_count = $emsg_count ] && echo Yes. || echo No.
\r
114 echo -n "Checking that this is Debian package for notmuch... "
\r