[PATCH v2] gdb: AC_INIT should be called with package and version arguments

Andreas Schwab schwab@linux-m68k.org
Tue Nov 23 15:06:11 GMT 2021


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."


More information about the Gdb-patches mailing list