]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
README: recommend zstd over xz
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Apr 2022 10:27:23 +0000 (12:27 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Apr 2022 13:28:33 +0000 (15:28 +0200)
git archive automatically uses gzip when --output=*.tar.gz is used, but
not for other extensions. Thus we need to invoke the compressor separately :(

It's a good pattern to use a variable for the repeating number, so let's
recommend that.

README

diff --git a/README b/README
index 60b7aae930b44b0da578efe8fa313a5fb43b9dce..f75fb9d5a5261c82fb52c79207af2909a89051d0 100644 (file)
--- a/README
+++ b/README
@@ -241,7 +241,7 @@ REQUIREMENTS:
           DESTDIR=... meson install -C build/
 
         A tarball can be created with:
-          git archive --format=tar --prefix=systemd-222/ v222 | xz > systemd-222.tar.xz
+          v=250 && git archive --prefix=systemd-$v/ v$v | zstd >systemd-$v.tar.zstd
 
         When systemd-hostnamed is used, it is strongly recommended to
         install nss-myhostname to ensure that, in a world of