From: Ralf W. <Ral...@gm...> - 2007-06-15 07:26:16
|
Hello, * rahed wrote on Thu, Jun 14, 2007 at 07:14:20PM CEST: > > I was advised to use a wrapper script around pkg-config: > > #!/bin/sh > if pkg-config "$ <at> " > /dev/null 2>&1 ; then > res=true > else > res=false > fi > pkg-config "$ <at> " | tr -d \\r && $res FWIW, it is possible to post-process a command's output while running it once only and still retaining the right exit status, see e.g. here: <http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/5408/focus=5410> Cheers, Ralf |