* Linux 2.6.32 generates weirdly named gcno files.

svn path=/nixpkgs/trunk/; revision=19206
This commit is contained in:
Eelco Dolstra 2010-01-04 13:15:04 +00:00
parent ed4447febd
commit 6259721697

View File

@ -144,12 +144,17 @@ rec {
# Get rid of everything that isn't a gcno file or a C source
# file. This also includes the gcda files; we're not
# interested in coverage resulting from the package's own test
# suite.
# suite. Also strip the `.tmp_' prefix from gcno files. (The
# Linux kernel creates these.)
cleanupBuildDir =
''
find $out/.build/ -type f -a ! \
\( -name "*.c" -o -name "*.h" -o -name "*.gcno" \) \
| xargs rm -f --
for i in $(find $out/.build/ -name ".tmp_*.gcno"); do
mv "$i" "$(echo $i | sed s/.tmp_//)"
done
'';
} stdenv;