Re: using gpg with notmuch
[notmuch-archives.git] / a4 / b9245b96a26d17d70a8a2066e82b1e8a36fa93
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 C0428429E35\r
6         for <notmuch@notmuchmail.org>; Wed, 18 Feb 2015 07:06:57 -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: 2.438\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
12         tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 1tYZbIaWkffW for <notmuch@notmuchmail.org>;\r
16         Wed, 18 Feb 2015 07:06:52 -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 F000C429E32\r
19         for <notmuch@notmuchmail.org>; Wed, 18 Feb 2015 07:06:51 -0800 (PST)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id 78CD910009D; Wed, 18 Feb 2015 16:54:05 +0200 (EET)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: notmuch@notmuchmail.org\r
24 Subject: [PATCH] configure: consistent command -v usage\r
25 Date: Wed, 18 Feb 2015 16:54:01 +0200\r
26 Message-Id: <1424271241-11885-1-git-send-email-tomi.ollila@iki.fi>\r
27 X-Mailer: git-send-email 2.0.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: Wed, 18 Feb 2015 15:06:58 -0000\r
42 \r
43 When the shell builtin `command -v` operates normally, it either\r
44 prints the path of the arg given to it and returns zero -- or it\r
45 returns nonzero and prints nothing.\r
46 In abnormal situations something might be printed to stderr and\r
47 in that case we want to know about it; therefore the used\r
48 command -v stderr redirections to /dev/null have been removed.\r
49 \r
50 The `hash` (builtin) command in ksh returns zero even the arg\r
51 given to is is not found in path. For that and for consistency\r
52 the one appearance of it has been converted to `command -v`.\r
53 ---\r
54 \r
55 marked trivial\r
56 \r
57  configure | 6 +++---\r
58  1 file changed, 3 insertions(+), 3 deletions(-)\r
59 \r
60 diff --git a/configure b/configure\r
61 index a6b49ae..4af7ba9 100755\r
62 --- a/configure\r
63 +++ b/configure\r
64 @@ -378,7 +378,7 @@ printf "Checking for python... "\r
65  have_python=0\r
66  \r
67  for name in python python2 python3; do\r
68 -    if command -v $name > /dev/null 2>&1; then\r
69 +    if command -v $name > /dev/null; then\r
70         have_python=1\r
71         python=$name\r
72         printf "Yes ($name).\n"\r
73 @@ -435,7 +435,7 @@ else\r
74  fi\r
75  \r
76  printf "Checking if doxygen is available... "\r
77 -if command -v doxygen > /dev/null 2>&1; then\r
78 +if command -v doxygen > /dev/null; then\r
79      printf "Yes.\n"\r
80      have_doxygen=1\r
81  else\r
82 @@ -444,7 +444,7 @@ else\r
83  fi\r
84  \r
85  printf "Checking if sphinx is available and supports nroff output... "\r
86 -if hash sphinx-build > /dev/null 2>&1 && ${python} -m sphinx.writers.manpage > /dev/null 2>&1 ; then\r
87 +if command -v sphinx-build > /dev/null && ${python} -m sphinx.writers.manpage > /dev/null 2>&1 ; then\r
88      printf "Yes.\n"\r
89      have_sphinx=1\r
90  else\r
91 -- \r
92 1.9.1\r
93 \r