Permalink
Browse files

Fixed use of find ... -printf "%f" on Mac OS by replacing it with -ex…

…ec basename

Fixes issue #1028
  • Loading branch information...
Sergey Shevelev authored and wohali committed Aug 5, 2018
1 parent 17aec1f commit d29011b117a0274e42a908914ee7d3de8f947d80
Showing with 2 additions and 2 deletions.
  1. +2 −2 Makefile
View
@@ -254,15 +254,15 @@ list-eunit-apps:
.PHONY: list-eunit-suites
# target: list-eunit-suites - List EUnit target test suites
list-eunit-suites:
@find ./src/ -type f -name *_test.erl -o -name *_tests.erl -printf "%f\n" \
@find ./src/ -type f -name *_test.erl -o -name *_tests.erl -exec basename {} \; \
| cut -d '.' -f -1 \
| sort
.PHONY: list-js-suites
# target: list-js-suites - List JavaScript test suites
list-js-suites:
@find ./test/javascript/tests/ -type f -name *.js -printf "%f\n" \
@find ./test/javascript/tests/ -type f -name *.js -exec basename {} \; \
| cut -d '.' -f -1 \
| sort

0 comments on commit d29011b

Please sign in to comment.