devtools: make log checking script BSD-compatible
PATCH 1/1 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
--- devtools/check-git-log.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
devtools/check-git-log.sh +1 -1
@@ -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
Signature · 1 line
2.11.0
Thomas Monjalon
Applied2017-03-23 15:09, Bruce Richardson:
Quoted 11 lines
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 foundFixes 814c8822ef7b ("scripts: check cc stable mailing list in commit")Signed-off-by Bruce Richardson <[email protected]>
[...]
devtools/check-git-log.sh if [ "$1" = '-h' -o "$1" = '--help' ] ; then · line 50
Quoted 2 lines
devtools/check-git-log.sh +1
-1-selfdir=$(dirname $(readlink -e $0)) +selfdir=$(dirname $(readlink -f $0))
You win the prize of the shortest fix with only one letter! :)
Applied, thanks