Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Enze Li via Gdb-patches <gdb-patches@sourceware.org>
Cc: brobecker@adacore.com
Subject: Re: [PATCH v2] gdb: AC_INIT should be called with package and version arguments
Date: Tue, 23 Nov 2021 16:06:11 +0100	[thread overview]
Message-ID: <87czmqgbdo.fsf@igel.home> (raw)
In-Reply-To: <MEAP282MB0293B93AFCD4EF67902EBA4FDD609@MEAP282MB0293.AUSP282.PROD.OUTLOOK.COM> (Enze Li via Gdb-patches's message of "Tue, 23 Nov 2021 22:16:39 +0800")

On Nov 23 2021, Enze Li via Gdb-patches wrote:

> diff --git a/gdb/version.m4 b/gdb/version.m4
> new file mode 100644
> index 00000000000..e7a4226dd39
> --- /dev/null
> +++ b/gdb/version.m4
> @@ -0,0 +1,3 @@
> +m4_define([DAY], m4_esyscmd(date "+%Y%m%d" | tr -d "\n"))
> +m4_define([GDB_VERSION], m4_esyscmd(cat version.in | sed "s/DATE/DAY/g" | tr -d "\n"))
> +m4_undefine([DAY])

That should produce the same version as written in gdb/version.c.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

  reply	other threads:[~2021-11-23 15:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-23 14:16 Enze Li via Gdb-patches
2021-11-23 15:06 ` Andreas Schwab [this message]
2021-11-25 16:20   ` Enze Li via Gdb-patches
2021-11-25 17:30     ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87czmqgbdo.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox