From 8fd05e2177e45300c735071864fb6998dfcf2e7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Thu, 16 Oct 2025 18:55:14 +0200 Subject: [PATCH] Exclude docs of dependencies from the source tarball --- scripts/create_source_tarball.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/create_source_tarball.sh b/scripts/create_source_tarball.sh index 9ccbec2223a8..8d37ca3d3f32 100755 --- a/scripts/create_source_tarball.sh +++ b/scripts/create_source_tarball.sh @@ -43,6 +43,11 @@ git checkout-index --all --prefix="$SOLDIR" # shellcheck disable=SC2016 SOLDIR="$SOLDIR" git submodule foreach 'git checkout-index --all --prefix="${SOLDIR}/${sm_path}/"' +# Documentation is pretty heavy and not necessary to build the compiler. +# Especially nlohmann-json has several huge images, which blow up the size of the compressed tarball. +# shellcheck disable=SC2016 +SOLDIR="$SOLDIR" git submodule foreach 'rm -rf "${SOLDIR}/${sm_path}/"{doc,docs}/' + # Include the commit hash and prerelease suffix in the tarball echo "$commit_hash" > "${SOLDIR}/commit_hash.txt" [[ -e prerelease.txt ]] && cp prerelease.txt "${SOLDIR}/"