Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / f1 / 60dcfe8b478a2e3ffd60a72b96692896525fb7
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 AD85C431FD8\r
6         for <notmuch@notmuchmail.org>; Fri,  8 Nov 2013 09:31:11 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\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 cn9-qdbcTzsX for <notmuch@notmuchmail.org>;\r
16         Fri,  8 Nov 2013 09:31:05 -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 0F68A431FC9\r
19         for <notmuch@notmuchmail.org>; Fri,  8 Nov 2013 09:31:05 -0800 (PST)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id 03BB41000E0; Fri,  8 Nov 2013 19:30:59 +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: check\r
25         NOTMUCH_(MAJOR|MINOR|MICRO)_VERSION\r
26 Date: Fri,  8 Nov 2013 19:30:56 +0200\r
27 Message-Id: <1383931856-5377-1-git-send-email-tomi.ollila@iki.fi>\r
28 X-Mailer: git-send-email 1.8.0\r
29 Cc: tomi.ollila@iki.fi\r
30 X-BeenThere: notmuch@notmuchmail.org\r
31 X-Mailman-Version: 2.1.13\r
32 Precedence: list\r
33 List-Id: "Use and development of the notmuch mail system."\r
34         <notmuch.notmuchmail.org>\r
35 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
36         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
37 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
38 List-Post: <mailto:notmuch@notmuchmail.org>\r
39 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
40 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
41         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
42 X-List-Received-Date: Fri, 08 Nov 2013 17:31:11 -0000\r
43 \r
44 New defines NOTMUCH_MAJOR_VERSION, NOTMUCH_MINOR_VERSION and\r
45 NOTMUCH_MICRO_VERSION were added to lib/notmuch.h.\r
46 Check that these match the current value defined in ./version.\r
47 ---\r
48  devel/release-checks.sh | 36 ++++++++++++++++++++++++++++++++++++\r
49  1 file changed, 36 insertions(+)\r
50 \r
51 diff --git a/devel/release-checks.sh b/devel/release-checks.sh\r
52 index 4eff1a7..d6410ad 100755\r
53 --- a/devel/release-checks.sh\r
54 +++ b/devel/release-checks.sh\r
55 @@ -13,6 +13,8 @@ fi\r
56  set -o posix\r
57  set -o pipefail # bash feature\r
58  \r
59 +readonly DEFAULT_IFS="$IFS" # Note: In this particular case quotes are needed.\r
60 +\r
61  # Avoid locale-specific differences in output of executed commands\r
62  LANG=C LC_ALL=C; export LANG LC_ALL\r
63  \r
64 @@ -20,8 +22,10 @@ readonly PV_FILE='bindings/python/notmuch/version.py'\r
65  \r
66  # Using array here turned out to be unnecessarily complicated\r
67  emsgs=''\r
68 +emsg_count=0\r
69  append_emsg ()\r
70  {\r
71 +       emsg_count=$((emsg_count + 1))\r
72         emsgs="${emsgs:+$emsgs\n}  $1"\r
73  }\r
74  \r
75 @@ -73,6 +77,38 @@ case $VERSION in\r
76         *)      verfail "'$VERSION' is a single number" ;;\r
77  esac\r
78  \r
79 +_set_version_components ()\r
80 +{\r
81 +       VERSION_MAJOR=$1\r
82 +       VERSION_MINOR=$2\r
83 +       VERSION_MICRO=${3:-0} # set to 0 in case $3 is unset or "null" (string)\r
84 +}\r
85 +\r
86 +IFS=.\r
87 +_set_version_components $VERSION\r
88 +IFS=$DEFAULT_IFS\r
89 +\r
90 +echo -n "Checking that libnotmuch version macros match $VERSION... "\r
91 +NOTMUCH_MAJOR_VERSION=broken\r
92 +NOTMUCH_MINOR_VERSION=broken\r
93 +NOTMUCH_MICRO_VERSION=broken\r
94 +eval `awk 'NF == 3 && $1 == "#define" && $2 ~ /^NOTMUCH_[A-Z]+_VERSION$/ \\r
95 +       && $3 ~ /^[0-9]+$/ { print $2 "=" $3 }' lib/notmuch.h`\r
96 +\r
97 +check_version_component ()\r
98 +{\r
99 +       eval local v1=\$VERSION_$1\r
100 +       eval local v2=\$NOTMUCH_$1_VERSION\r
101 +       if [ $v1 != $v2 ]\r
102 +       then    append_emsg "NOTMUCH_$1_VERSION is defined as '$v2' in lib/notmuch.h instead of '$v1'"\r
103 +       fi\r
104 +}\r
105 +\r
106 +old_emsg_count=$emsg_count\r
107 +check_version_component MAJOR\r
108 +check_version_component MINOR\r
109 +check_version_component MICRO\r
110 +[ $old_emsg_count = $emsg_count ] && echo Yes. || echo No.\r
111  \r
112  echo -n "Checking that this is Debian package for notmuch... "\r
113  read deb_notmuch deb_version rest < debian/changelog\r
114 -- \r
115 1.8.0\r
116 \r