Re: [PATCH v4] build: write VERSION file containing $(VERSION) string
authorW. Trevor King <wking@tremily.us>
Sat, 8 Feb 2014 23:56:23 +0000 (15:56 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:59:49 +0000 (09:59 -0800)
4d/b0b08538f37fd60289f3152a2a76afab24a16b [new file with mode: 0644]

diff --git a/4d/b0b08538f37fd60289f3152a2a76afab24a16b b/4d/b0b08538f37fd60289f3152a2a76afab24a16b
new file mode 100644 (file)
index 0000000..c5f27f3
--- /dev/null
@@ -0,0 +1,143 @@
+Return-Path: <wking@tremily.us>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1A91E431FBD\r
+       for <notmuch@notmuchmail.org>; Sat,  8 Feb 2014 15:56:29 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.1\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id hwgEYZgMEu2T for <notmuch@notmuchmail.org>;\r
+       Sat,  8 Feb 2014 15:56:25 -0800 (PST)\r
+Received: from qmta02.westchester.pa.mail.comcast.net\r
+       (qmta02.westchester.pa.mail.comcast.net [76.96.62.24])\r
+       by olra.theworths.org (Postfix) with ESMTP id 7D264431FBC\r
+       for <notmuch@notmuchmail.org>; Sat,  8 Feb 2014 15:56:25 -0800 (PST)\r
+Received: from omta13.westchester.pa.mail.comcast.net ([76.96.62.52])\r
+       by qmta02.westchester.pa.mail.comcast.net with comcast\r
+       id Pzbc1n00117dt5G51zwR2u; Sat, 08 Feb 2014 23:56:25 +0000\r
+Received: from odin.tremily.us ([24.18.63.50])\r
+       by omta13.westchester.pa.mail.comcast.net with comcast\r
+       id PzwP1n00L152l3L3ZzwQCM; Sat, 08 Feb 2014 23:56:24 +0000\r
+Received: by odin.tremily.us (Postfix, from userid 1000)\r
+       id 4B28F100D8AE; Sat,  8 Feb 2014 15:56:23 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin;\r
+       t=1391903783; bh=DH7kOkhbQA9jh8+h6UsaHZFkXBU93D60ai5FWjWPAvM=;\r
+       h=Date:From:To:Cc:Subject:References:In-Reply-To;\r
+       b=L8L0eY8IRMO3OHaByDBWgX9fuALdAeG9U44Hbu5JwGQuHmH37iMRVqeeJr7MfpjEf\r
+       TCPNfnMh/9tUGLNc8yAJTg3rI43ynofA8s32A/TAcsYJuZXQ2+AXh2G+vINhRvDdPd\r
+       dNLpILGBuh0Fjpb9jvYeXThD/26A6ePFrAeBn3EE=\r
+Date: Sat, 8 Feb 2014 15:56:23 -0800\r
+From: "W. Trevor King" <wking@tremily.us>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>\r
+Subject: Re: [PATCH v4] build: write VERSION file containing $(VERSION) string\r
+Message-ID: <20140208235623.GF17142@odin.tremily.us>\r
+References: <m261p4mkal.fsf@guru.guru-group.fi>\r
+       <1391641113-4669-1-git-send-email-tomi.ollila@iki.fi>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha1;\r
+       protocol="application/pgp-signature"; boundary="65ImJOski3p8EhYV"\r
+Content-Disposition: inline\r
+In-Reply-To: <1391641113-4669-1-git-send-email-tomi.ollila@iki.fi>\r
+OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8;\r
+       url=http://tremily.us/pubkey.txt\r
+User-Agent: Mutt/1.5.22 (2013-10-16)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
+       s=q20121106; t=1391903785;\r
+       bh=D4tJBUKr6nvGIZCaxRkhXJz+20/reTG1SEuWlI41SdE=;\r
+       h=Received:Received:Received:Date:From:To:Subject:Message-ID:\r
+       MIME-Version:Content-Type;\r
+       b=d8SyPMtHeMa49fahROhmMrvNEgRvqt+nI8JHdmXFRsGD4GmrAhWsEsKQrETmuoOpd\r
+       L59a4L1IUWFJYDOQEjhnqjEpOJ+scSGb124n7BL9CLRr9apyN2O/6l6bCyODdH0Lli\r
+       VwrPZb7pKwRQnjU+e6xZlfkwX1mStZ1wMWaEOWtGbfR+a/6VMIa54AtDxMdd07UQ+m\r
+       WrOB++Nwbw3LWPw9cOEgWtIYHxY28mPuq9iXMY8BK5lyChI74ussFV+/e7nCG5J6nA\r
+       KYHzmpfE70YqA7ilccAEg7Oo5UmYnWrIle5WjZ84/NdB0RpjFgsXVm336l6fWoydXg\r
+       8Tlhcj6/Qi7Hw==\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 08 Feb 2014 23:56:29 -0000\r
+\r
+\r
+--65ImJOski3p8EhYV\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Thu, Feb 06, 2014 at 12:58:33AM +0200, Tomi Ollila wrote:\r
+> -VERSION:=3D$(shell git describe --match '[0-9.]*'|sed -e s/_/~/ -e s/-/+=\r
+/ -e s/-/~/)\r
+> +# Also write VERSION file in case its contents differ from $(VERSION)\r
+> +VERSION:=3D$(shell\\r
+> +    gv=3D`git describe --match '[0-9.]*'|sed -e s/_/~/ -e s/-/+/ -e s/-/~/`=\r
+;\\r
+\r
+Ew, backticks ;).  What about handling more of the logic in Make:\r
+\r
+  VERSION :=3D $(shell git describe =E2=80=A6)\r
+  FILE_VERSION :=3D $(shell test -f VERSION || touch VERSION; cat VERSION)\r
+  ifneq ($(FILE_VERSION), $(VERSION))\r
+       $(shell echo "$(VERSION)" > VERSION)\r
+  endif\r
+\r
+> +# Depend (also) on 'version' file. In case of ifeq ($(IS_GIT),yes)\r
+> +# this file may already have been updated.\r
+> +VERSION: version\r
+> +    echo $(VERSION) > $@\r
+\r
+Do we care about case-insensitive filesystems where VERSION will\r
+collide with version?\r
+\r
+> -CLEAN :=3D $(CLEAN) notmuch notmuch-shared $(notmuch_client_modules) not=\r
+much.elc\r
+> +CLEAN :=3D $(CLEAN) VERSION notmuch notmuch-shared $(notmuch_client_modu=\r
+les)\r
+\r
+Where did notmuch.elc go?\r
+\r
+Cheers,\r
+Trevor\r
+\r
+--=20\r
+This email may be signed or encrypted with GnuPG (http://www.gnupg.org).\r
+For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy\r
+\r
+--65ImJOski3p8EhYV\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+Content-Description: OpenPGP digital signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2.0.22 (GNU/Linux)\r
+\r
+iQIcBAEBAgAGBQJS9sQkAAoJEKKfehoaNkbtNIQQAIPJycXMHuHL0HGSoJeg4U8p\r
+OTCt6N9tqkFHOcaIy/L45WY2WJZ+zsPMqFg8P4+/8WMuDrnP9/PJ8LdzRwSwNjO8\r
+t05p9r8fXksgSVNcN4TiVgNIpQxu7DrIQyh9Ys0kOaGRew+Oo8p/XTyRaYPZsvtS\r
+vWRfOaeN35ctHeNf0ajagcek9k1fup8hN4M8xFBrrFluQf91KWEPpSYHOcjXSUDC\r
+8UHa5aARRFP4ooVFuDmEMygqKuTjMiJN++/JXz0j6rf1Esaz4Gm/HfLHzk7Ut/EN\r
+jJhBcKqGi5HPaFsh4jwAbj06Ydugl9aNHCZRTlrT7yOYVOTkjIRDL2OEd9bpome9\r
+L8Py/8+/ewTfpWbZfW6qIIYTgn/HE5ItOUzq0H57nu33GCKmXVDMcq2ycQx7U7yG\r
+7BYhVMxCsE37Su/0nw4jU5zhqyf53h8ETs7/3jDpX8cPGCnyxKSprMOodhrBPqNO\r
+WgBlsLqzjNDMvXFESVK6pQVnbI9x+vXInqJApNXGvTHH1tkif9TzSS3oCb7s0foK\r
+rKVr/sCmg8xpv2hvpZUj8ggTUYZh2OUG6/w87fu7xvQ58Cf7vLbNN+PC29Gbo1px\r
+UU428xM5kj+L9+VlfFjHFtjJ3aoglwMspVdJzsZ8IxMBMZlnxRdwYqzv478F/hA1\r
+4qRJuR845hegTrblJSgA\r
+=WGIC\r
+-----END PGP SIGNATURE-----\r
+\r
+--65ImJOski3p8EhYV--\r