From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 8443311C5 for ; Thu, 23 Mar 2017 16:09:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1490281778; x=1521817778; h=from:to:cc:subject:date:message-id; bh=NUxyJ+GD75RJITDZ5YLyMWiANfxMqMVMQ+665AZnq3o=; b=rIPr0sRi6ptvMUtoOvD3hGpxdSREDBKrL54s/MmyyGlIGB6gy+C6XDdK dNTCKmpmeiy1/7ivVjqZ9f4RstCkgw==; Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Mar 2017 08:09:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,210,1486454400"; d="scan'208";a="70027324" Received: from sivswdev01.ir.intel.com ([10.237.217.45]) by orsmga004.jf.intel.com with ESMTP; 23 Mar 2017 08:09:36 -0700 From: Bruce Richardson To: thomas.monjalon@6wind.com Cc: dev@dpdk.org, Bruce Richardson Date: Thu, 23 Mar 2017 15:09:26 +0000 Message-Id: <20170323150926.16818-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.8.4 Subject: [dpdk-dev] [PATCH] devtools: make log checking script BSD-compatible X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Mar 2017 15:09:38 -0000 The -e flag to readlink doesn't exist on FreeBSD so change it to -f instead which is present on both BSD and Linux. Error reported is: readlink: illegal option -- e usage: readlink [-fn] [file ...] usage: dirname string [...] ./devtools/check-git-log.sh: /git-log-fixes.sh: not found Fixes: 814c8822ef7b ("scripts: check cc stable mailing list in commit") Signed-off-by: Bruce Richardson --- devtools/check-git-log.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/check-git-log.sh b/devtools/check-git-log.sh index e3ac0e472..8449d4f67 100755 --- a/devtools/check-git-log.sh +++ b/devtools/check-git-log.sh @@ -47,7 +47,7 @@ if [ "$1" = '-h' -o "$1" = '--help' ] ; then exit fi -selfdir=$(dirname $(readlink -e $0)) +selfdir=$(dirname $(readlink -f $0)) range=${1:-origin/master..} # convert -N to HEAD~N.. in order to comply with git-log-fixes.sh getopts if printf -- $range | grep -q '^-[0-9]\+' ; then -- 2.11.0