Re: [PATCH 3/5] nmbug-status: Add an nmbug-status(5) man page
[notmuch-archives.git] / 79 / 1c92d9fd7b8ebd376f401ce4423a45025e4c3c
1 Return-Path: <too@guru.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 AD455431FC0\r
6         for <notmuch@notmuchmail.org>; Wed, 14 Mar 2012 08:00: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 Jz5xoAiw5TcN for <notmuch@notmuchmail.org>;\r
16         Wed, 14 Mar 2012 08:00:07 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
18         by olra.theworths.org (Postfix) with ESMTP id 9AF69431FBC\r
19         for <notmuch@notmuchmail.org>; Wed, 14 Mar 2012 08:00:07 -0700 (PDT)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id 4257068055; Wed, 14 Mar 2012 17:00:06 +0200 (EET)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: notmuch@notmuchmail.org\r
24 Subject: [PATCH 1/2] configure: store $IFS to $DEFAULT_IFS readonly variable\r
25 Date: Wed, 14 Mar 2012 16:59:59 +0200\r
26 Message-Id: <1331737200-16570-1-git-send-email-tomi.ollila@iki.fi>\r
27 X-Mailer: git-send-email 1.7.6.1\r
28 In-Reply-To: <1331402091-15663-1-git-send-email-tom.prince@ualberta.net>\r
29 References: <1331402091-15663-1-git-send-email-tom.prince@ualberta.net>\r
30 Cc: Tomi Ollila <tomi.ollila@iki.fi>\r
31 X-BeenThere: notmuch@notmuchmail.org\r
32 X-Mailman-Version: 2.1.13\r
33 Precedence: list\r
34 List-Id: "Use and development of the notmuch mail system."\r
35         <notmuch.notmuchmail.org>\r
36 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
37         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
38 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
39 List-Post: <mailto:notmuch@notmuchmail.org>\r
40 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
41 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
42         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
43 X-List-Received-Date: Wed, 14 Mar 2012 15:00:10 -0000\r
44 \r
45 In the future, IFS value needs to be changed in a few places\r
46 in configure -- and then restored. Store the original value\r
47 to $DEFAULT_IFS for easy restoration.\r
48 ---\r
49  configure |    8 +++++---\r
50  1 files changed, 5 insertions(+), 3 deletions(-)\r
51 \r
52 diff --git a/configure b/configure\r
53 index ee0ae73..3b2b6b7 100755\r
54 --- a/configure\r
55 +++ b/configure\r
56 @@ -1,5 +1,8 @@\r
57  #! /bin/sh\r
58  \r
59 +# Store original IFS value so it can be changed (and restored) in many places.\r
60 +readonly DEFAULT_IFS=$IFS\r
61 +\r
62  srcdir=$(dirname "$0")\r
63  \r
64  # For a non-srcdir configure invocation (such as ../configure), create\r
65 @@ -379,7 +382,6 @@ elif [ $uname = "Linux" ] ; then\r
66      #  IFS=$(printf '\n')\r
67      #\r
68      # because the shell's command substitution deletes any trailing newlines.\r
69 -    OLD_IFS=$IFS\r
70      IFS="\r
71  "\r
72      for path in $ldconfig_paths; do\r
73 @@ -387,7 +389,7 @@ elif [ $uname = "Linux" ] ; then\r
74             libdir_in_ldconfig=1\r
75         fi\r
76      done\r
77 -    IFS=$OLD_IFS\r
78 +    IFS=$DEFAULT_IFS\r
79      if [ "$libdir_in_ldconfig" = '0' ]; then\r
80         printf "No (will set RPATH)\n"\r
81      else\r
82 @@ -536,7 +538,7 @@ done\r
83  printf "\n\t${WARN_CFLAGS}\n"\r
84  \r
85  rm -f minimal minimal.c\r
86 -       \r
87 +\r
88  cat <<EOF\r
89  \r
90  All required packages were found. You may now run the following\r
91 -- \r
92 1.7.8.2\r
93 \r