diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-12 17:16:17 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-12 17:16:17 +0000 |
commit | 1fc4372374147afbd71be193f43afab9ffa36611 (patch) | |
tree | 09972badf48a1ca239479ad0f316f9fd302dd855 /build/linux | |
parent | 8ec6d19233feeb102c8815f1400d0ed4bcdd8a83 (diff) | |
download | chromium_src-1fc4372374147afbd71be193f43afab9ffa36611.zip chromium_src-1fc4372374147afbd71be193f43afab9ffa36611.tar.gz chromium_src-1fc4372374147afbd71be193f43afab9ffa36611.tar.bz2 |
Fix pkg-config-wrapper to forward the return value from pkg-config
BUG=None
TEST=Run ./pkg-config-wrapper / --atleast-version=3.0 inputproto and check that it returns 1
Review URL: http://codereview.chromium.org/4900001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65956 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/linux')
-rwxr-xr-x | build/linux/pkg-config-wrapper | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/linux/pkg-config-wrapper b/build/linux/pkg-config-wrapper index fa76c2e..d94b997 100755 --- a/build/linux/pkg-config-wrapper +++ b/build/linux/pkg-config-wrapper @@ -11,4 +11,6 @@ rewrite=`dirname $0`/rewrite_dirs.py shift config_path=$root/usr/lib/pkgconfig:$root/usr/share/pkgconfig -PKG_CONFIG_PATH=$config_path pkg-config --define-variable=prefix=/usr "$@" | $rewrite $root +set -e +result=`PKG_CONFIG_PATH=$config_path pkg-config --define-variable=prefix=/usr "$@"` +echo "$result"| $rewrite $root |