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,'
9 coreutils=$(echo 'spy:;@echo $(all_programs)' | (cd src; make -f Makefile -f - spy | tr -s '\n ' ' '))
13 path='export PATH='$srcdir':${PATH#*:}'
14 pre='#!/bin/sh\n'"$path"'\n'
16 vg='exec /usr/bin/valgrind --quiet --num-callers='$n
17 cat <<EOF > src/vg/gen
18 for i in $coreutils; do
19 printf "$pre$vg \$i"' "\$@"\n' > \$i