[telepathy-glib/master] Copy in a better version of lcov.am, from Gabble
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon Jan 11 07:26:27 PST 2010
* get the package name and git commit programmatically, rather than
hard-coding the report title to telepathy-glib
* allow extra arguments to be passed to make check by make lcov-check
Reviewed-by: Sjoerd Simons <sjoerd.simons at collabora.co.uk>
---
tools/lcov.am | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/lcov.am b/tools/lcov.am
index 97eed8f..7384f1b 100644
--- a/tools/lcov.am
+++ b/tools/lcov.am
@@ -8,7 +8,8 @@ lcov-report:
--remove @top_builddir@/lcov.info.tmp telepathy-glib-scan.c
rm @top_builddir@/lcov.info.tmp
$(mkdir_p) @top_builddir@/lcov.html
- genhtml --title telepathy-glib \
+ git_commit=`GIT_DIR=@top_srcdir@/.git git log -1 --pretty=format:%h 2>/dev/null`;\
+ genhtml --title "@PACKAGE_STRING@ $$git_commit" \
--output-directory @top_builddir@/lcov.html lcov.info
@echo
@echo 'lcov report can be found in:'
@@ -17,7 +18,7 @@ lcov-report:
lcov-check:
$(MAKE) lcov-reset
- $(MAKE) check
+ $(MAKE) check $(LCOV_CHECK_ARGS)
$(MAKE) lcov-report
## vim:set ft=automake:
--
1.5.6.5
More information about the telepathy-commits
mailing list