make_tarball: use XZ for compression

Closes #5460.
This commit is contained in:
David Adam 2020-02-14 22:00:00 +08:00
parent 38d530bc5b
commit 07ba0cb84a
2 changed files with 6 additions and 5 deletions

View file

@ -24,6 +24,7 @@
### Deprecations and removed features ### Deprecations and removed features
### For distributors and developers ### For distributors and developers
- fish source tarballs are now distributed using the XZ compression method (#5460).
--- ---

View file

@ -42,7 +42,7 @@ prefix="fish-$VERSION"
path=${FISH_ARTEFACT_PATH:-~/fish_built}/$prefix.tar path=${FISH_ARTEFACT_PATH:-~/fish_built}/$prefix.tar
# Clean up stuff we've written before # Clean up stuff we've written before
rm -f "$path" "$path".gz rm -f "$path" "$path".xz
# git starts the archive # git starts the archive
git archive --format=tar --prefix="$prefix"/ HEAD > "$path" git archive --format=tar --prefix="$prefix"/ HEAD > "$path"
@ -63,9 +63,9 @@ $TAR_APPEND version
cd - cd -
rm -r "$PREFIX_TMPDIR" rm -r "$PREFIX_TMPDIR"
# gzip it # xz it
gzip "$path" xz "$path"
# Output what we did, and the sha1 hash # Output what we did, and the sha1 hash
echo "Tarball written to $path".gz echo "Tarball written to $path".xz
openssl dgst -sha256 "$path".gz openssl dgst -sha256 "$path".xz