From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 1/4] build: add single source of DPDK version number Date: Wed, 13 Mar 2019 12:06:38 +0100 Message-ID: <6766221.dD9Uvtf5Qj@xps> References: <20190307115448.54041-1-bruce.richardson@intel.com> <20190307133502.55321-1-bruce.richardson@intel.com> <20190307133502.55321-2-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, David Marchand , Luca Boccassi To: Bruce Richardson Return-path: Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id B04744C95 for ; Wed, 13 Mar 2019 12:06:42 +0100 (CET) In-Reply-To: <20190307133502.55321-2-bruce.richardson@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 07/03/2019 14:34, Bruce Richardson: > Add a new file DPDK_VERSION to hold the current DPDK version number. > Have meson use this file for it's project version, and have make use > it for reporting out "showversion" and "showversionum". > > Signed-off-by: Bruce Richardson > Acked-by: Luca Boccassi [...] > --- /dev/null > +++ b/DPDK_VERSION Why not VERSION ? [...] > --- a/mk/rte.sdkconfig.mk > +++ b/mk/rte.sdkconfig.mk > showversion: > - @set -- \ > - $$(sed -rne 's,^#define RTE_VER_[A-Z_]*[[:space:]]+([0-9]+).*,\1,p' \ > - -e 's,^#define RTE_VER_SUFFIX[[:space:]]+"(.*)",\1,p' \ > - $(RTE_SRCDIR)/lib/librte_eal/common/include/rte_version.h) ;\ > - printf '%d.%02d.%d' "$$1" "$$2" "$$3"; \ > - if [ -z "$$5" ]; then echo; \ > - else printf '%s' "$$4"; \ > - if [ $$5 -lt 16 ] ; then echo $$5; \ > - else echo $$(($$5 - 16)); fi; \ > - fi > + @cat $(RTE_SRCDIR)/DPDK_VERSION I'm a bit sad about removing this complex command ;)