Browse files

fix race condition in find (it was finding the copied files over and …

…over again, and recursing forever)
  • Loading branch information...
1 parent f9e8477 commit ba259f6bdc680fb1bb44d5e7b50f519ba1e04dcd @nunoplopes nunoplopes committed Feb 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Makefile.gcov
View
3 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`; \

0 comments on commit ba259f6

Please sign in to comment.