Skip to content

Commit eda0aea

Browse files
committed
Exclude docs of dependencies from the source tarball
1 parent 5ef96c9 commit eda0aea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/create_source_tarball.sh

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

0 commit comments

Comments
 (0)