diff options
author | Nuno Lopes <nlopess@php.net> | 2012-02-20 16:01:34 +0000 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2012-02-20 16:01:34 +0000 |
commit | 0cb26060af1553e29ea93553db7fbf5bda96685a (patch) | |
tree | 367c2b29b05a6e5a687cc31e28d8e9b3f027796a /Makefile.gcov | |
parent | ecd13fd184ab46136d893338748fcda6c1458c7f (diff) | |
download | php-git-0cb26060af1553e29ea93553db7fbf5bda96685a.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.gcov | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.gcov b/Makefile.gcov index db9169b896..79d7a6d719 100644 --- a/Makefile.gcov +++ b/Makefile.gcov @@ -14,7 +14,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' | $(EGREP) $(LCOV_INCLUDE) | 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' | $(EGREP) $(LCOV_INCLUDE) | uniq` ;\ + for x in $$files; do \ echo -n . ;\ y=`echo $$x | sed -e 's!\.libs/!!'`; \ dir=lcov_data/`dirname $$x`; \ |