From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id EE61FA034E;
	Tue, 19 Nov 2019 18:38:25 +0100 (CET)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id CF64CA69;
	Tue, 19 Nov 2019 18:38:24 +0100 (CET)
Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com
 [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id 335E5235
 for <dev@dpdk.org>; Tue, 19 Nov 2019 18:38:23 +0100 (CET)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.west.internal (Postfix) with ESMTP id B7F6F740;
 Tue, 19 Nov 2019 12:38:21 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162])
 by compute1.internal (MEProxy); Tue, 19 Nov 2019 12:38:22 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding:content-type; s=mesmtp;
 bh=Eh23EhKp7XgTuq/OuFO3UELZG6gv6YfTTuR89G6Jq9A=; b=sg/s+cVF0Fam
 xQwpGHZClRNHruxIiLBFIbtDqlhebYBZLVpari6O988gYZ+J+aIsLObsutv9ul4T
 Z0085POjlPhodQG0fU2XkUEDGdQBcqP6lzZ/SNMTCZvY/67foCkwQT3y1bZIw2cP
 jBBPrsD664ujHSyev3v1bXc48m9TfME=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:from:in-reply-to:message-id:mime-version:references
 :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm1; bh=Eh23EhKp7XgTuq/OuFO3UELZG6gv6YfTTuR89G6Jq
 9A=; b=xZNrlHY4NTZN+yLwvn6/Z81rFePdufHIbWLzzFIS9ObfCW0uj7CJ1cce9
 90zwVlZh2JeDO/eQDuZyVGUvbdMkkzcwMNYpxlvHefFZvqtpsHTZMMDwT2iVzxSD
 gVeGV3fmszSw4YNqTvc55USw9HevSoBv4aBG4VSsd5uvcikY7GwHRkuijFKxMufA
 Tj6hzCN7pC+y4UvE4DkEKIqEm1LOQNMEfWsRCGYhkIdFJAMqDw4jMcMTnOK0ZNkf
 T05GHaBsdXqDHlQvN0EujSxlD7XN8tbJoFiOyJhlwWEDon23q5eX9M40w24kdjl1
 bX1vq99gGCk7tanrsgkqPkKQeVURg==
X-ME-Sender: <xms:jCjUXXYbuZVCeQUtveViC0pLxbxfqNIgiykW9Ve76Um8p9ZPgcaCgw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudegkedguddtgecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm
 rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc
 fkphepjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpeht
 hhhomhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd
X-ME-Proxy: <xmx:jCjUXfvh9-Xj_6YhtGyEj5Ocjhf7HNaZCBLN0DIAAVzMiRYL-YzJTg>
 <xmx:jCjUXYsEdAtNp3UePpOqpmTZvF9P0cS7znBD9xPWWVVrWPjl2qlGzQ>
 <xmx:jCjUXYohfNTqX7UJRw2NY9hFBpu5HZnT-qz65WZfH1PkoYte9tOD1Q>
 <xmx:jSjUXf4ovaAHsVRhItixRl5EiR3kpPECpjGtHOUXu3j29c4_KrRC0Q>
Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184])
 by mail.messagingengine.com (Postfix) with ESMTPA id 56DAC80059;
 Tue, 19 Nov 2019 12:38:19 -0500 (EST)
From: Thomas Monjalon <thomas@monjalon.net>
To: Anatoly Burakov <anatoly.burakov@intel.com>
Cc: dev@dpdk.org, john.mcnamara@intel.com, ray.kinsella@intel.com,
 bruce.richardson@intel.com, david.marchand@redhat.com
Date: Tue, 19 Nov 2019 18:38:16 +0100
Message-ID: <8286083.4ZIB1RLW8s@xps>
In-Reply-To: <d1af51f1795ee2e8f3a0180a7655ae707760916b.1573230233.git.anatoly.burakov@intel.com>
References: <cover.1573230233.git.anatoly.burakov@intel.com>
 <d1af51f1795ee2e8f3a0180a7655ae707760916b.1573230233.git.anatoly.burakov@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Subject: Re: [dpdk-dev] [PATCH v7 03/10] buildtools: add ABI update shell
	script
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

08/11/2019 17:25, Anatoly Burakov:
> In order to facilitate mass updating of version files, add a shell
> script that recurses into lib/ and drivers/ directories and calls
> the ABI version update script.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
> --- /dev/null
> +++ b/buildtools/update-abi.sh
> @@ -0,0 +1,42 @@
> +#!/bin/sh

For such script, I think -e is mandatory, so we do not miss any error.
It would just require merge following check in the "if":

> +# check version string format
> +echo $abi_version | grep -q -e "^[[:digit:]]\{1,2\}\.[[:digit:]]\{1,2\}$"
> +if [ "$?" -ne 0 ]; then
> +      # output to stderr
> +      >&2 echo "ABI version must be formatted as MAJOR.MINOR version"
> +      exit 1
> +fi