Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/create_source_tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}/"
Expand Down