Skip to content

Commit 4042b32

Browse files
committed
Exclude docs of dependencies from the source tarball
1 parent 142aa62 commit 4042b32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/create_source_tarball.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ 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+
SOLDIR="$SOLDIR" git submodule foreach 'rm -rf "${SOLDIR}/${sm_path}/"{doc,docs}/'
49+
4650
# Include the commit hash and prerelease suffix in the tarball
4751
echo "$commit_hash" > "${SOLDIR}/commit_hash.txt"
4852
[[ -e prerelease.txt ]] && cp prerelease.txt "${SOLDIR}/"

0 commit comments

Comments
 (0)