Skip to content

Commit 8fd05e2

Browse files
committed
Exclude docs of dependencies from the source tarball
1 parent 34754a5 commit 8fd05e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/create_source_tarball.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ git checkout-index --all --prefix="$SOLDIR"
4343
# shellcheck disable=SC2016
4444
SOLDIR="$SOLDIR" git submodule foreach 'git checkout-index --all --prefix="${SOLDIR}/${sm_path}/"'
4545

46+
# Documentation is pretty heavy and not necessary to build the compiler.
47+
# Especially nlohmann-json has several huge images, which blow up the size of the compressed tarball.
48+
# shellcheck disable=SC2016
49+
SOLDIR="$SOLDIR" git submodule foreach 'rm -rf "${SOLDIR}/${sm_path}/"{doc,docs}/'
50+
4651
# Include the commit hash and prerelease suffix in the tarball
4752
echo "$commit_hash" > "${SOLDIR}/commit_hash.txt"
4853
[[ -e prerelease.txt ]] && cp prerelease.txt "${SOLDIR}/"

0 commit comments

Comments
 (0)