summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Shevelev <sshevelev2@bloomberg.net>2018-08-04 18:27:08 -0700
committerJoan Touzet <wohali@users.noreply.github.com>2018-08-04 21:59:14 -0400
commitd29011b117a0274e42a908914ee7d3de8f947d80 (patch)
tree363a158239ffaf46b7da5c29d762f7e9f64694ff
parent17aec1f3339f864eb08869d6235753f0fdd28259 (diff)
downloadcouchdb-d29011b117a0274e42a908914ee7d3de8f947d80.tar.gz
Fixed use of find ... -printf "%f" on Mac OS by replacing it with -exec basename
Fixes issue #1028
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 304b48e54..0ab7b4eed 100644
--- a/Makefile
+++ b/Makefile
@@ -254,7 +254,7 @@ 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
@@ -262,7 +262,7 @@ list-eunit-suites:
.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