3 # Convert Makefile.am files:
4 # find tests -name Makefile.am \
5 # | xargs grep -wl PATH|xargs perl -pi -e 's,src:\$\$PATH,src/vg:\$\$PATH,'
9 coreutils
=$
(echo 'spy:;@echo $(all_programs)' |
(cd src
; make -f Makefile
-f - spy |
tr -s '\n ' ' '))
13 path
='export PATH='$up':${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