On Saturday 04 November 2006 07:49, Jim Meyering wrote: > I've just realized there's a better way to write the script above. > Just compute the name of the program under test from the name of > the script: > > #!/bin/sh > export PATH=@BUILD_DIR@:/sbin:/usr/sbin:/bin > prog=${0##*/} > exec /usr/bin/valgrind -v --suppressions=/tmp/cu-vg --log-fd=3 \ > --leak-check=full --track-fds=yes --num-callers=15 -- "$prog" "$@" > > Now, the only variable is the part marked with @BUILD_DIR@. > Oh. Also the suppressions file name. Wouldn't the reviewer/packager still have to know every binary name produced and write a script for each? Is there no easier way? -- Jesse Keating Release Engineer: Fedora
Attachment:
pgpgw296g2gAT.pgp
Description: PGP signature
-- Fedora-packaging mailing list Fedora-packaging@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-packaging