[PATCH] emacs: implement notmuch-search-color-line with dolist.
[notmuch-archives.git] / b1 / 17cac5be02d43d39a820bd48070275060dd8c2
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 2E544431FC0\r
6         for <notmuch@notmuchmail.org>; Sun, 11 May 2014 03:07:09 -0700 (PDT)\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 xBZfLSz9Y4d5 for <notmuch@notmuchmail.org>;\r
16         Sun, 11 May 2014 03:07:04 -0700 (PDT)\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 4F477431FBF\r
19         for <notmuch@notmuchmail.org>; Sun, 11 May 2014 03:07:04 -0700 (PDT)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id 96209100063; Sun, 11 May 2014 13:06:58 +0300 (EEST)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: notmuch@notmuchmail.org\r
24 Subject: [RFC PATCH] configure: Create sh.config based on Makefile.config data\r
25 Date: Sun, 11 May 2014 13:06:56 +0300\r
26 Message-Id: <1399802816-29521-1-git-send-email-tomi.ollila@iki.fi>\r
27 X-Mailer: git-send-email 1.8.0\r
28 Cc: tomi.ollila@iki.fi\r
29 X-BeenThere: notmuch@notmuchmail.org\r
30 X-Mailman-Version: 2.1.13\r
31 Precedence: list\r
32 List-Id: "Use and development of the notmuch mail system."\r
33         <notmuch.notmuchmail.org>\r
34 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
35         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
36 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
37 List-Post: <mailto:notmuch@notmuchmail.org>\r
38 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
39 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
40         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
41 X-List-Received-Date: Sun, 11 May 2014 10:07:09 -0000\r
42 \r
43 Read Makefile.config and when line matches var = val assignment\r
44 create _var='val' from it. var must match [a-zA-Z_][a-zA-Z0-9_]*\r
45 and val [^'\]* ('\' usually meaning multiline assignments).\r
46 \r
47 Write these lines to sh.config.\r
48 \r
49 sh.config can then be used e.g. in test scripts.\r
50 ---\r
51  configure | 5 +++++\r
52  1 file changed, 5 insertions(+)\r
53 \r
54 diff --git a/configure b/configure\r
55 index 9bde2eb72b0e..feb0e480f86a 100755\r
56 --- a/configure\r
57 +++ b/configure\r
58 @@ -935,3 +935,8 @@ CONFIGURE_CXXFLAGS = -DHAVE_GETLINE=\$(HAVE_GETLINE) \$(GMIME_CFLAGS)    \\\r
59  \r
60  CONFIGURE_LDFLAGS =  \$(GMIME_LDFLAGS) \$(TALLOC_LDFLAGS) \$(ZLIB_LDFLAGS) \$(XAPIAN_LDFLAGS)\r
61  EOF\r
62 +\r
63 +# Create sh.config based on Makefile.config values.\r
64 +# Output will be _var='val', val not containing ' nor \ (skipping multiline).\r
65 +sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\) *= *\([^\\'\'']*\)$/_\1='\''\2'\''/p' \\r
66 +       Makefile.config > sh.config\r
67 -- \r
68 1.8.0\r
69 \r