Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…over again, and recursing forever)
  • Loading branch information...
commit 1800baf4c2e920687a1ab4482e6ec7a96d4a331e 1 parent 2942e86
Nuno Lopes authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  Makefile.gcov
3  Makefile.gcov
@@ -12,7 +12,8 @@ lcov-test
@rm -rf lcov_data/
@$(mkinstalldirs) lcov_data/
- -@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`; \
Please sign in to comment.
Something went wrong with that request. Please try again.