summaryrefslogtreecommitdiff
path: root/Makefile.gcov
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2012-02-20 16:01:34 +0000
committerNuno Lopes <nlopess@php.net>2012-02-20 16:01:34 +0000
commitba259f6bdc680fb1bb44d5e7b50f519ba1e04dcd (patch)
tree42eb4c62736e78c1374148f73e00813a35f3d414 /Makefile.gcov
parentf9e8477b0411432fc85aaa2933f4950a8aaa0748 (diff)
downloadphp-git-ba259f6bdc680fb1bb44d5e7b50f519ba1e04dcd.tar.gz
fix race condition in find (it was finding the copied files over and over again, and recursing forever)
Diffstat (limited to 'Makefile.gcov')
-rw-r--r--Makefile.gcov3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.gcov b/Makefile.gcov
index e499c833bb..946f539d10 100644
--- a/Makefile.gcov
+++ b/Makefile.gcov
@@ -12,7 +12,8 @@ php_lcov.info: lcov-test
@rm -rf lcov_data/
@$(mkinstalldirs) lcov_data/
@echo
- -@find . -name \*.gcda -o -name \*.gcno -o -name \*.da -o -name \*.h | sed -e 's/^\.\///' | sed -e 's/\.gcda//g' -e 's/\.gcno//g' -e 's/\.da//g' | uniq | while read x; do \
+ -@files=`find . -name \*.gcda -o -name \*.gcno -o -name \*.da -o -name \*.h | sed -e 's/^\.\///' | sed -e 's/\.gcda//g' -e 's/\.gcno//g' -e 's/\.da//g' | uniq` ;\
+ for x in $$files; do \
echo -n . ;\
y=`echo $$x | sed -e 's!\.libs/!!'`; \
dir=lcov_data/`dirname $$x`; \