3 # Convert Makefile.am files:
4 # find tests -name Makefile.am | xargs grep -wl PATH|xargs perl -pi -e \
5 # 's,src(\$\(PATH_SEPARATOR\)\$\$PATH),src/vg$1,'
7 # find tests -name Makefile.am|xargs grep -wl PATH|xargs perl -pi -e 's,src/vg,src,'
9 # Create this symlink for suppressions:
10 # ln -s $PWD/.vg-suppressions /tmp/cu-vg
14 coreutils
=$
(echo 'spy:;@echo $(all_programs)' |
(cd src
; make -f Makefile
-f - spy |
tr -s '\n ' ' '))
18 path
='export PATH='$srcdir':${PATH#*:}'
19 pre
='#!/bin/sh\n'"$path"'\n'
21 vg
='exec /usr/bin/valgrind --suppressions=/tmp/cu-vg --gen-suppressions=yes --leak-check=yes --quiet --num-callers='$n
22 cat <<EOF > src/vg/gen
23 for i in $coreutils; do
24 printf "$pre$vg \$i"' "\$@"\n' > \$i