Files
Jan Beulich 63ebd0e964 releases: use newer compression methods for tarballs
Other projects have long switched to xz and/or lzip.

Tidy things some as well: With the removal of qemu from the tarball,
intermediately extracting the tarball again has become wasteful. Drop
that. Invoke compressors using asynchronous lists, to reduce overall
latency. Drop the -v option from the (previously implicit) gzip
invocation.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Tested-by: Julien Grall <jgrall@amazon.com>
2025-09-25 10:22:55 +02:00

32 lines
602 B
Bash
Executable File

#!/bin/bash
#
# mktarball: Make a release tarball (including just xen)
#
# Takes 2 arguments, the path to the dist directory and the version
set -ex
if [[ -z "$1" || -z "$2" ]] ; then
echo "usage: $0 path-to-XEN_ROOT xen-version"
exit 1
fi
xen_root="$1"
desc="$2"
tdir="$xen_root/dist"
rm -f $tdir/xen-$desc.tar*
mkdir -p $tdir
git --git-dir="$xen_root/.git" archive --format=tar HEAD --prefix=xen-$desc/ \
>"$tdir/xen-$desc.tar"
gzip -9k "$tdir/xen-$desc.tar" &
xz -9k "$tdir/xen-$desc.tar" &
lzip -9k "$tdir/xen-$desc.tar" &
wait
echo "Source tarball(s):"
ls -lh $tdir/xen-$desc.tar*