git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Including git-describe info as version strings for generic "-v" output

From
Ddemerphq <demerphq@gmail.com>
Date
Jan 23, 2012, 11:16 UTC
Message-ID
<CANgJU+XUg8=WMjHLNhe9kxgoGna6m4+YyduBRNGurAke12vLgg@mail.gmail.com>
In-Reply-To
<CAG_NL2So7cf6o+en9ktHGr94Eu5WJ9giWq6OmSxK+ZL4RdtaGA@mail.gmail.com>
On 21 January 2012 20:09, Harry portobello <harryportobello@gmail.com> wrote:
Show 19 quoted lines
> Hi all,
>
> I hope the subject makes sense -- I'll explain what I'm trying to do.
>
> I'm wondering what the best approaches are to being able to include
> output from git-describe [1] for generic version strings in projects
> managed by Git? This would have to work from within an
> autotools-managed project.
>
> At the moment, I've managed to hook the output from git-describe in to
> a few .m4 files, which works only at ./configure time -- but of
> course, with this being Git, I'd ideally like the same mechanism to
> work in a situation where someone does:
>
> $ git pull && make
>
> It's knowing how to plumb this in to the Makefile.am part I'm hazy over.
>
> Any help would be much appreciated.

FWIW Perl does something like this. Have a look at the Perl makefiles for an example.

Yves
-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
Previous: Dirk Süsserott
Message 4 of 4 in “Including git-describe info as version strings for generic "-v" output”
  1. Harry portobelloJan 21, 2012
  2. Junio C HamanoJan 21, 2012
  3. Dirk SüsserottJan 22, 2012
  4. demerphqJan 23, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.