From 5564efac95e9546af948fc13c90584264b322950 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 19 Sep 2018 10:50:12 +0900 Subject: Accept pkgconf difference for spaces. * src/gpg-error-config-test.sh (OUTPUT_OLD): Use shell and echo to remove spaces. -- There is an alternative implementation of pkg-conf, named pkgconf. It emits an extra space at the end. Tested on FreeBSD 11.1. Signed-off-by: NIIBE Yutaka --- src/gpg-error-config-test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpg-error-config-test.sh b/src/gpg-error-config-test.sh index 7f97ead..7ed70df 100755 --- a/src/gpg-error-config-test.sh +++ b/src/gpg-error-config-test.sh @@ -29,15 +29,15 @@ failure () { rm -f gpg-error-config-test.log -OUTPUT_OLD=$($PKG_CONFIG_CMD --libs) +OUTPUT_OLD=$(echo $($PKG_CONFIG_CMD --libs)) OUTPUT_NEW=$(./gpg-error-config-new --libs) [ "$OUTPUT_OLD" = "$OUTPUT_NEW" ] || failure --libs -OUTPUT_OLD=$($PKG_CONFIG_CMD --cflags) +OUTPUT_OLD=$(echo $($PKG_CONFIG_CMD --cflags)) OUTPUT_NEW=$(./gpg-error-config-new --cflags) [ "$OUTPUT_OLD" = "$OUTPUT_NEW" ] || failure --cflags -OUTPUT_OLD=$($PKG_CONFIG_CMD --cflags --libs) +OUTPUT_OLD=$(echo $($PKG_CONFIG_CMD --cflags --libs)) OUTPUT_NEW=$(./gpg-error-config-new --cflags --libs) [ "$OUTPUT_OLD" = "$OUTPUT_NEW" ] || failure --cflags --libs -- cgit v1.2.3