From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Ehrhardt Subject: Re: [PATCH v2] mk: fix compile error and ABI versioning for combined shared library Date: Thu, 3 Dec 2015 09:18:49 +0100 Message-ID: References: <1449105754-17136-1-git-send-email-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: dev@dpdk.org To: Ferruh Yigit Return-path: Received: from mail-ig0-f172.google.com (mail-ig0-f172.google.com [209.85.213.172]) by dpdk.org (Postfix) with ESMTP id 86636567E for ; Thu, 3 Dec 2015 09:19:09 +0100 (CET) Received: by igcmv3 with SMTP id mv3so7948565igc.0 for ; Thu, 03 Dec 2015 00:19:09 -0800 (PST) In-Reply-To: <1449105754-17136-1-git-send-email-ferruh.yigit@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Ferruh, some minor bash improvements that could be made in the next revision: On Thu, Dec 3, 2015 at 2:22 AM, Ferruh Yigit wrote: > diff --git a/scripts/merge_maps.sh b/scripts/merge_maps.sh > new file mode 100755 > index 0000000..bc40dc8 > --- /dev/null > +++ b/scripts/merge_maps.sh > @@ -0,0 +1,29 @@ > +#!/bin/sh > + > +FILES=$(find $RTE_SDK -name "*.map" | grep -v build) > +SYMBOLS=$(grep -h "{" $FILES | sort -u | sed 's/{//') Guarding $RTE_SDK and $FILES with "" will help avoid some potential issues due to words splitting. [...] > + sed -n "/$s {/,/}/p" $f | sed '/^$/d' | grep -v global | grep -v local | sed '1d' | sed '$d' As above with $f [...] > + if [ "$prev_sym" == "none" ]; then Should be only one = as == is non standard and could fail in some environments. Christian Ehrhardt Software Engineer, Ubuntu Server Canonical Ltd