From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by sourceware.org (Postfix) with ESMTPS id 04C353858C2C for ; Tue, 23 Nov 2021 15:06:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 04C353858C2C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nefkom.net Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Hz6sd3rNGz1qxHk; Tue, 23 Nov 2021 16:06:13 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Hz6sd3379z1qqkB; Tue, 23 Nov 2021 16:06:13 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 390yesuioGkY; Tue, 23 Nov 2021 16:06:12 +0100 (CET) X-Auth-Info: oqIrI8TQ+5tpL5/tY8dcAU3N4yGZjpjSN1XjbIXEAiT+mkfxHcBpH1rLAmQDcm7Y Received: from igel.home (ppp-46-244-166-20.dynamic.mnet-online.de [46.244.166.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 23 Nov 2021 16:06:12 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 800322C093E; Tue, 23 Nov 2021 16:06:11 +0100 (CET) From: Andreas Schwab To: Enze Li via Gdb-patches Cc: brobecker@adacore.com, simon.marchi@polymtl.ca, Enze Li Subject: Re: [PATCH v2] gdb: AC_INIT should be called with package and version arguments References: X-Yow: I'm young.. I'm HEALTHY.. I can HIKE THRU CAPT GROGAN'S LUMBAR REGIONS! Date: Tue, 23 Nov 2021 16:06:11 +0100 In-Reply-To: (Enze Li via Gdb-patches's message of "Tue, 23 Nov 2021 22:16:39 +0800") Message-ID: <87czmqgbdo.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-10.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2021 15:06:18 -0000 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."