2008-08-01 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Fri, 1 Aug 2008 15:49:39 +0000 (15:49 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Fri, 1 Aug 2008 15:49:39 +0000 (15:49 +0000)
* src/pkg-config: Return exit code of pkg-config.

ChangeLog
src/pkg-config

index 35d8264..7a6bdd6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-01  Marcus Brinkmann  <marcus@g10code.de>
+
+       * src/pkg-config: Return exit code of pkg-config.
+
 2008-07-31  Werner Koch  <wk@g10code.com>
 
        * packages/packages.current: Update dirmngr.
index 4ca7253..d5d0135 100755 (executable)
@@ -43,8 +43,9 @@ then
 #    echo "PKG_CONFIG_LIBDIR=$PKG_CONFIG_LIBDIR" >&2
 #    echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" >&2
 #    echo "OKAY" >&2;
-    exit 0;
+    # See question 11 in comp.unix.shell FAQ.
+    exit ${PIPESTATUS[0]};
 else
-    echo "pkg-config failed!" >&2 
+    echo "pkg-config pipe failed!" >&2 
     exit 1
 fi