]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
build: error "make distcheck" if bootstrap is called with --skip-po
authorDaiki Ueno <ueno@gnu.org>
Mon, 9 Dec 2024 12:40:07 +0000 (21:40 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 9 Jan 2025 05:04:22 +0000 (14:04 +0900)
This prevents mistakes when creating a tarball, as in 3.8.7.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
.gitlab-ci.yml
Makefile.am

index 1e814d7fdad65bf0d9b66645b34516cef74a9672..3b4c113a449c2071e6c296aa414c56d6b9c3367f 100644 (file)
@@ -175,6 +175,8 @@ doc-dist.Fedora:
   needs:
     - fedora/bootstrap
   script:
+    # Fake distcheck-hook that checks bootstrap is called without --skip-po
+    - mkdir -p po/.reference
     - CFLAGS="-std=c99 -O2 -g" dash ./configure --disable-gcc-warnings --cache-file $CCACHE_FILE --prefix=/usr --libdir=/usr/lib64 --disable-cxx --disable-non-suiteb-curves --enable-gtk-doc --disable-maintainer-mode --with-pkcs12-iter-count=10000
     - make -j$BUILDJOBS -C doc stamp-vti
     - make -j$BUILDJOBS -C doc stamp_enums
index 843193f9f3b4ff313cd0cfff002cc447578e3f1c..9ade7b6938001bd24fedccd962b63c6ea25f87c5 100644 (file)
@@ -191,6 +191,9 @@ dist-hook:
        mv ChangeLog $(distdir)
        touch -c $(distdir)/doc/*.html $(distdir)/doc/*.pdf $(distdir)/doc/*.info
 
+distcheck-hook:
+       @test -d "$(top_srcdir)/po/.reference" || { echo "PO files are not downloaded; run ./bootstrap without --skip-po"; exit 1; }
+
 .PHONY: abi-check abi-dump-versioned abi-dump-latest pic-check symbol-check local-code-coverage-output files-update AUTHORS
 
 include $(top_srcdir)/cligen/cligen.mk