1 Return-Path: <cworth@cworth.org>
\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 39AD3429E25
\r
6 for <notmuch@notmuchmail.org>; Thu, 26 May 2011 15:12:26 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0.01 tagged_above=-999 required=5
\r
12 tests=[T_MIME_NO_TEXT=0.01] 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 ign3qWv9Is7U for <notmuch@notmuchmail.org>;
\r
16 Thu, 26 May 2011 15:12:25 -0700 (PDT)
\r
17 Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2])
\r
18 by olra.theworths.org (Postfix) with ESMTP id CB5D5431FB6
\r
19 for <notmuch@notmuchmail.org>; Thu, 26 May 2011 15:12:25 -0700 (PDT)
\r
20 Received: from yoom.home.cworth.org (localhost [127.0.0.1])
\r
21 by arlo.cworth.org (Postfix) with ESMTP id AFCA229A4E7;
\r
22 Thu, 26 May 2011 15:12:24 -0700 (PDT)
\r
23 Received: by yoom.home.cworth.org (Postfix, from userid 1000)
\r
24 id 6055025417E; Thu, 26 May 2011 15:12:24 -0700 (PDT)
\r
25 From: Carl Worth <cworth@cworth.org>
\r
26 To: Felix Geller <fgeller@gmail.com>, notmuch@notmuchmail.org
\r
27 Subject: Re: [PATCH] Change in increment_mtime for BSD compatibility of test
\r
29 In-Reply-To: <m2sjs3q66v.fsf@gmail.com>
\r
30 References: <m2sjs3q66v.fsf@gmail.com>
\r
31 User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1
\r
33 Date: Thu, 26 May 2011 15:12:19 -0700
\r
34 Message-ID: <87boypcdrw.fsf@yoom.home.cworth.org>
\r
36 Content-Type: multipart/signed; boundary="=-=-=";
\r
37 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
38 X-BeenThere: notmuch@notmuchmail.org
\r
39 X-Mailman-Version: 2.1.13
\r
41 List-Id: "Use and development of the notmuch mail system."
\r
42 <notmuch.notmuchmail.org>
\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
46 List-Post: <mailto:notmuch@notmuchmail.org>
\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
50 X-List-Received-Date: Thu, 26 May 2011 22:12:26 -0000
\r
53 Content-Transfer-Encoding: quoted-printable
\r
55 On Wed, 25 May 2011 15:07:52 +0200, Felix Geller <fgeller@gmail.com> wrote:
\r
56 Non-text part: multipart/mixed
\r
57 Non-text part: multipart/signed
\r
58 > Use `-t' option rather than `-d' which is not supported by BSD's
\r
59 > touch. I'm not sure whether this is the cleanest way to do this, please
\r
60 > let me know if there is a better way.
\r
62 I don't know of a better way, but...
\r
64 > + last_mod_date=3D`date -j -f %Y%m%d%H%M%S \`stat -f %Sm -t %Y%m%d%H%M=
\r
66 > increment_mtime_amount=3D$((increment_mtime_amount + 1))
\r
67 > - touch -d "+${increment_mtime_amount} seconds" "$dir"
\r
68 > + new_date=3D`date -j -r ${last_mod_date} -v+${increment_mtime_amount}=
\r
70 > + touch -t ${new_date} ${dir}
\r
73 date: invalid option -- 'j'
\r
74 Try `date --help' for more information.
\r
78 > There are additional changes
\r
79 > (e.g., sed does not support `-r' but instead `-E') but they seem to be
\r
80 > incompatible between GNU and BSD. What's the recommended way to handle
\r
83 That sounds like something we could test inside our configure
\r
84 script. In addition to the current Makefile.config file it's creating,
\r
85 it could also create a little test-config.sh file for things like this.
\r
92 carl.d.worth@intel.com
\r
95 Content-Type: application/pgp-signature
\r
97 -----BEGIN PGP SIGNATURE-----
\r
98 Version: GnuPG v1.4.11 (GNU/Linux)
\r
100 iEYEARECAAYFAk3e0EMACgkQ6JDdNq8qSWgpgwCfbTAkaeMwS9Y1Bew/lhhvHMsk
\r
101 vS8AnA9EYceeXdFlmyKlPk3JsEzNApPk
\r
103 -----END PGP SIGNATURE-----
\r