From: Bruce Richardson Date: Thu, 23 Mar 2017 15:09:26 +0000 (+0000) Subject: devtools: make log checking script BSD-compatible X-Git-Tag: spdx-start~4396 X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=a3e34aa85dbc2aeefc0ea2ddbea50f41748d2e13 devtools: make log checking script BSD-compatible 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 --- diff --git a/devtools/check-git-log.sh b/devtools/check-git-log.sh index e3ac0e472a..8449d4f674 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