Re: [PATCH] Include extra information in mutt version string for developer builds
* David Champion on Thursday, September 16, 2010 at 18:11:44 -0500
> Take 2. Includes Moritz Barsnick's changes and simulates {latesttag}
> when running in a Mercurial release that does not have it, per Christian
> Ebert.
>
>
> # HG changeset patch
> # User David Champion <dgc@xxxxxxxxxxxx>
> # Date 1284678222 18000
> # Branch HEAD
> # Node ID c16ee46e288f86a297e014d65d277b9d6a0d22c0
> # Parent 59aad6c21703484a9a298536efd4d971039d0a61
> Include extra information in mutt version string for developer builds.
>
> When a build is based on an hg clone, include extra information about
> the changeset node, distance from a tagged release, and mq applied patch
> count.
>
> For example, after this patch is applied my mutt build identifies itself
> (in mutt -v and in <show-version>) as:
>
> Mutt 1.5.21+26,mq+22 (7edc2073390d) (2010-09-15)
>
> I have applied 26 changesets applied since 1.5.21 was tagged, 22 of
> which are in my mq patch series. A 1.5.21 release build that is not
> mercurial-based would still appear simply as "1.5.21".
>
> diff -r 59aad6c21703 -r c16ee46e288f configure.ac
> --- a/configure.ac Wed Sep 15 11:47:39 2010 -0700
> +++ b/configure.ac Thu Sep 16 18:03:42 2010 -0500
> @@ -7,7 +7,7 @@
> AC_INIT([mutt.h])
> AM_CONFIG_HEADER([config.h])
>
> -mutt_cv_version=`cat $srcdir/VERSION`
> +mutt_cv_version=`./version`
> AM_INIT_AUTOMAKE(mutt, $mutt_cv_version)
> AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/VERSION'])
>
> diff -r 59aad6c21703 -r c16ee46e288f version
> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
> +++ b/version Thu Sep 16 18:03:42 2010 -0500
This doesn't apply on case-insensitive filesystems - I'm using
the default HFS+ on MacOS X, which is indeed case-insensitive.
So, no precise version header in this mail yet ;-)
c
--
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions