Commit f1f68c97 authored by Pekka Pessi's avatar Pekka Pessi

scripts/lcov-report: fixed whitespace

darcs-hash:20081127232837-db55f-02e6efbd7e69096f12a3823e686791f94849cc2a.gz
parent 29c5e8ff
......@@ -30,7 +30,7 @@ GENHTML_OPTIONS= o=
while test $# -gt 0;
do
case $1 in
case $1 in
--srcdir | -s )
test -z "$2" && usage 1; shift; srcdir=$1; shift; ;;
--srcdir=* )
......@@ -41,7 +41,7 @@ do
o=${1#--output?directory=}; shift ;;
--prefix=* | --title=* | --show-details | --legend | --frames )
GENHTML_OPTIONS="${GENHTML_OPTIONS} $1" ; shift ;;
--prefix | --title )
--prefix | --title )
test -z "$2" && usage 1; GENHTML_OPTIONS="${GENHTML_OPTIONS} $1 $2" ; shift ; shift ;;
--help | '-?' | -h ) usage 0 ;;
- ) shift; break ;;
......@@ -53,7 +53,7 @@ done
info=${o:=.}/lcov.info geninfo=${o}/genhtml.info
rm -f ${info} ${info}
case ${GENHTML_OPTIONS} in *--prefix* ) ;; *)
case ${GENHTML_OPTIONS} in *--prefix* ) ;; *)
GENHTML_OPTIONS="${GENHTML_OPTIONS} --prefix=`cd ${srcdir:=.} && pwd`"
esac
......@@ -64,7 +64,7 @@ lcov --compat-libtool --directory . --capture --output-file ${info} &&
# remove source files in builddir
test ${srcdir:-.} = . || lcov -l ${info} | grep "`pwd`"
# remove test programs
lcov -l ${info} | grep "/test\|/torture\|_test[.][ch][+xp]*$"
lcov -l ${info} | grep "/test\|/torture\|_test[.][ch][+xp]*$"
} |
cut -d: -f1 |
xargs lcov -r ${info} > ${geninfo}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment