aboutsummaryrefslogtreecommitdiffstats
path: root/build-scripts/prebuild
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-08 15:31:54 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-08 17:51:15 +0100
commit511d70166d73fa07f3b275f6d206c107bb194a19 (patch)
tree84be2fd897afeb2781ccae3fdf7a5e47dfacce8f /build-scripts/prebuild
parentcb769c62e55599e9f980001830bc61d9fcaa64a9 (diff)
downloadqpdf-511d70166d73fa07f3b275f6d206c107bb194a19.tar.zst
Check generated QPDFJob files in CI
This is to catch pull requests that make changes that would affect automatically generated job files without including those modifications.
Diffstat (limited to 'build-scripts/prebuild')
-rwxr-xr-xbuild-scripts/prebuild17
1 files changed, 17 insertions, 0 deletions
diff --git a/build-scripts/prebuild b/build-scripts/prebuild
index 1ba3e3c4..e6ee197c 100755
--- a/build-scripts/prebuild
+++ b/build-scripts/prebuild
@@ -1,4 +1,21 @@
#!/bin/bash
+set -e
cd $(dirname $0)/..
+if ! ./generate_auto_job --check; then
+ cat 1>&2 <<EOF
+
+******************************
+
+An input or output file of generate_auto_job was modified without
+rerunning ./generate_auto_job. If you are seeing this in your pull
+request, you should pass --enable-maintainer-mode to ./configure if
+possible, or if not, run "./generate_auto_job --generate" and include
+any changed files in your commit.
+
+******************************
+
+EOF
+ exit 2
+fi
build-scripts/build-doc
build-scripts/download-external-libs