aboutsummaryrefslogtreecommitdiffstats
path: root/pkg-test/test-cmake
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2023-12-23 16:41:55 +0100
committerJay Berkenbilt <ejb@ql.org>2023-12-23 17:10:55 +0100
commit2f37633b923e0294acd894454a95d2a9ee1d36a9 (patch)
treeba71b08f35a9eaacf7733ec0fa18a16f665bf002 /pkg-test/test-cmake
parent6b8aa1db6f5c204913ccf53c1fe3cdec7aa6c132 (diff)
downloadqpdf-2f37633b923e0294acd894454a95d2a9ee1d36a9.tar.zst
Fix pkg-test tests and run from CI
Diffstat (limited to 'pkg-test/test-cmake')
-rwxr-xr-xpkg-test/test-cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg-test/test-cmake b/pkg-test/test-cmake
index 868ce363..580da370 100755
--- a/pkg-test/test-cmake
+++ b/pkg-test/test-cmake
@@ -13,7 +13,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 pkg-test/CMakeLists.txt $TMP
cd $TMP