This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: meaning of "Automatic date update in version.in" commits
- From: Philippe Waroquiers <philippe dot waroquiers at skynet dot be>
- To: Mikhail Terekhov <Mikhail dot Terekhov at dell dot com>, Matthias Klose <doko at ubuntu dot com>, Petr Ovtchenkov <ptr at void-ptr dot info>, Andreas Schwab <schwab at linux-m68k dot org>
- Cc: binutils at sourceware dot org, Joel Brobecker <brobecker at adacore dot com>, gdb at sourceware dot org
- Date: Wed, 20 Sep 2017 21:56:00 +0200
- Subject: Re: meaning of "Automatic date update in version.in" commits
- Authentication-results: sourceware.org; auth=none
- Ironport-phdr: 9a23:CC7pARUbVdQQgtmSML+66C2ZU+PV8LGtZVwlr6E/grcLSJyIuqrYZRaCu6dThVPEFb/W9+hDw7KP9fuxCSpYud6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCzbL52Lxi6txndutULioZ+N6g9zQfErGFVcOpM32NoIlyTnxf45siu+ZNo7jpdtfE8+cNeSKv2Z6s3Q6BWAzQgKGA1+dbktQLfQguV53sTSXsZnxxVCAXY9h76X5Pxsizntuph3SSRIMP7QawoVTmk8qxmUwHjhjsZODEl8WHXks1wg7xdoBK9vBx03orYbJiIOPZiYq/ReNUXTndDUMlMTSxMGoCyYZYPAeQfM+hXrYf9qEcJoxSxCgehH//vxzxSi3Pqx6A2z+YsHAfb1wIgBdIOt3HUoc3vOqcSUOC1yKjIzS3bb/xIxDzy6JLHcgomofGVQLJwcNTeyVM0FwjYiViQsYzlPzKR1uQMq2ib9/RvWfihimE9sQFxpSGvxtotiobXnIIV0UvJ9T56wIc1I923VlJ7bcS/H5ROriyXMZZ9TMA6Q2xwuys3yKcKtJ+5cSQQ1pgr2xzSZ+aaf4WL7B/uUvuaLy1ii3J/Yr2/gg6/8U2nyuLhSMa5yE1Kri9ZktnUsXANygDT5tCHSvRj+keh3i6C1wXO5e1cIEA0k7TUK4I5z7MzlJcfq0XOEy3slEnokKObdF8o9vWr5unpernmo4WTN45wigHwKKQuncm/DPwgMggOXmib/eW81KX7/ULnWrlLgOc5krPesJDDOMQbp7C2AxVO0os48Ba/DDen0NIGknkbNl5KYwyIg5DzO17SOPD4Eeu/g1O0nTlsxvDGPb3hDY/MLnjHirvvY6hy61RCxwowzdBf4IxUB6ocL/3tXk/xsMbUAQM+Mwyx2+znEsly1psCWWKTBa+UKL7dsViL5uIoOOSMeZQauCv7K/g5+v7il2M2mVgYfaOxx5sYdGi4Huh6I0WeeXfsmssBEX0RswogS+zqiUCNXSdLZ3auRaIw/DA7CISoDYfEXoqtmqCO3D+nHp1KYWBLEkuMHmvod4SKQfgDczmfIstgkjwCSLigRJYt1RSvuQL5yLprNO3U+jcXtZj7zth6+/XTlQ0u9TxzF8mSyGCNT2dpnmMURj822Lt/rFdmyleEzKh4meBXGsJd5vxTSAc1K4TQz+tgC9D9QgjBZMuGSE66QtW6BjE8Vsk+w8UJY0lmBdqtkhPD0DSwA7IOjbOEGYY7/b7b33jrOclx0WrJ1K4kj1M+WMtAKXWmhrJj9wjUH4PJnFiWmL2xeKQH2y7N6X2DwnaQs0BWSgFwS7vKUWoYZkvMotSqrn/FGpqvCrQuMw8J9cOYJ6hKbcOh2XBHR/fqOdCYX2+rlmSwAgigyr6IaMzhfGBLmG34AVQYkwEa5j6lMQ8lC2/1r2XdCxRzH0/pf16q+u57/jfzdkIo1UmtcVFq17ez+RkLzaiEV+k7wLUFtGI5ty8yHVCz2ISSQ/OGqxBsdb4UWtg9/15NnTbCvAxiN5aIK6Fkm05bdlonvAXpzRohWatals1/lHMryAtqMa/Q71pbcCqF3J3qIfWDMmnz+BG3c6OQxVjE18+L+6oV89wjqETlsR3vHEd0oCYv6MVcz3bJvsaCNwEVS5+kFx9vrxU=
- References: <20170920173622.28500ccf@void-ptr.info> <87zi9p2vma.fsf@linux-m68k.org> <20170920202354.3c863857@void-ptr.info> <7217d33d-61eb-732e-dfd6-80ef4908743e@ubuntu.com> <218bf365-1f36-3531-b42b-5b48499992ed@dell.com>
On Wed, 2017-09-20 at 15:26 -0400, Mikhail Terekhov wrote:
> > Feel free to limit the bumps to exactly one after another commit.
> >
>
> What if build scripts obtain date of last commit automatically i.e.
> something like this:
>
> ~/tmp/gdb/binutils-gdb (master)>git log -1 --format=%cd
> --date=format:%Y%m%d
> 20170920
>
> Then there is no need for additional commit.
This is what valgrind build does, so as to produce:
$ valgrind --version
valgrind-3.14.0.GIT
$ valgrind --version -v
valgrind-3.14.0.GIT-f1ff8597ef-20170919
The final "official" 3.14.0 release will (should) not have the
.GIT part (but will keep the short sha1 and date in -v output).
The date of last commit was recently added in the --version -v output.
There is also a trailing X added to the date if there are some diffs
between workdir and index, or index and HEAD.
See auxprogs/make_or_upd_vgversion_h and Makefile.am in valgrind
sources for details.
Philippe