aboutsummaryrefslogtreecommitdiffstats
path: root/pkg-test/test-pkg-config
diff options
context:
space:
mode:
Diffstat (limited to 'pkg-test/test-pkg-config')
-rwxr-xr-xpkg-test/test-pkg-config2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg-test/test-pkg-config b/pkg-test/test-pkg-config
index 4c46a59c..cbc0d133 100755
--- a/pkg-test/test-pkg-config
+++ b/pkg-test/test-pkg-config
@@ -12,7 +12,7 @@ if [ ! -d "$TMP" ]; then
exit 2
fi
-WANTED_VERSION=$(awk -F'"' '/#define QPDF_VERSION / {print $2}' include/qpdf/DLL.h)
+WANTED_VERSION=$(awk -F'"' '/# *define QPDF_VERSION / {print $2}' include/qpdf/DLL.h | tail -n 1)
cp pkg-test/qpdf-version.cc $TMP
cd $TMP