cvs: php-src(PHP_5_1) / Makefile.gcov
| From: | Ilia Alshanetsky | Date: | Sun, 04 Dec 2005 17:27:34 +0000 |
| Subject: | cvs: php-src(PHP_5_1) / Makefile.gcov | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-35629@lists.php.net to get a copy of this message | ||
iliaa Sun Dec 4 12:27:34 2005 EDT
Modified files: (Branch: PHP_5_1)
/php-src Makefile.gcov
Log:
Fixed gcov for generated files
http://cvs.php.net/diff.php/php-src/Makefile.gcov?r1=1.4.2.4&r2=1.4.2.5&ty=u
Index: php-src/Makefile.gcov
diff -u php-src/Makefile.gcov:1.4.2.4 php-src/Makefile.gcov:1.4.2.5
--- php-src/Makefile.gcov:1.4.2.4 Wed Nov 30 17:47:03 2005
+++ php-src/Makefile.gcov Sun Dec 4 12:27:34 2005
@@ -31,22 +31,23 @@
@echo
-@find . -name \*.gcda -o -name \*.gcno -o -name \*.da | sed -e 's/^\.\///' | sed -e
's/\.gcda//g' -e 's/\.gcno//g' -e 's/\.da//g' | uniq | while read x;
do \
echo -n . ;\
+ y=
echo $$x | sed -e 's!\.libs/!!'; \
dir=lcov_data/dirname $$x; \
test -d "$$dir" || $(mkinstalldirs) "$$dir"; \
- if test -f "$(top_srcdir)/$$x.c"; then \
- ln -f -s $(top_srcdir)/$$x.c lcov_data/$$x.c; \
+ if test -f "$(top_srcdir)/$$y.c"; then \
+ ln -f -s $(top_srcdir)/$$y.c lcov_data/$$y.c; \
fi; \
- if test -f "$(top_srcdir)/$$x.re"; then \
- ln -f -s $(top_srcdir)/$$x.re lcov_data/$$x.re; \
+ if test -f "$(top_srcdir)/$$y.re"; then \
+ ln -f -s $(top_srcdir)/$$y.re lcov_data/$$y.re; \
fi; \
- if test -f "$(top_srcdir)/$$x.y"; then \
- ln -f -s $(top_srcdir)/$$x.y lcov_data/$$x.y; \
+ if test -f "$(top_srcdir)/$$y.y"; then \
+ ln -f -s $(top_srcdir)/$$y.y lcov_data/$$y.y; \
fi; \
- if test -f "$(top_srcdir)/$$x.l"; then \
- ln -f -s $(top_srcdir)/$$x.l lcov_data/$$x.l; \
+ if test -f "$(top_srcdir)/$$y.l"; then \
+ ln -f -s $(top_srcdir)/$$y.l lcov_data/$$y.l; \
fi; \
- if test -f "$(top_builddir)/$$x.c"; then \
- ln -f -s $(top_builddir)/$$x.c lcov_data/$$x.c; \
+ if test -f "$(top_builddir)/$$y.c"; then \
+ ln -f -s $(top_builddir)/$$y.c lcov_data/$$y.c; \
fi; \
test -f "$$x.gcno" && cp $$x.gcno lcov_data/ ; \
test -f "$$x.gcda" && cp $$x.gcda lcov_data/ ; \