]> Cypherpunks.ru repositories - nncp.git/commitdiff
Replace xz compression examples with zstd ones
authorSergey Matveev <stargrave@stargrave.org>
Wed, 13 Nov 2019 13:10:45 +0000 (16:10 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 13 Nov 2019 19:16:29 +0000 (22:16 +0300)
doc/integration.texi
doc/warcer.sh
doc/wgeter.sh

index a65454537d224c7758568b5bb2cceadc008db118..d1f1af96163eb7b1131ee1e594f447862b7996b9 100644 (file)
@@ -183,8 +183,8 @@ that will create @file{www.example.com} directory with all files
 necessary to view @file{page.html} web page. You can create single file
 compressed tarball with that directory and send it to remote node:
 @verbatim
-$ tar cf - www.example.com | xz -9 |
-    nncp-file - remote.node:www.example.com-page.tar.xz
+$ tar cf - www.example.com | zstd |
+    nncp-file - remote.node:www.example.com-page.tar.zst
 @end verbatim
 
 But there are multi-paged articles, there are the whole interesting
@@ -216,8 +216,9 @@ $ wget \
 That command will create uncompressed @file{www.example_com-XXX.warc}
 web archive. By default, WARCs are compressed using
 @url{https://en.wikipedia.org/wiki/Gzip, gzip}, but, in example above,
-we have disabled it to compress with stronger @command{xz}, before
-sending via @command{nncp-file}.
+we have disabled it to compress with stronger and faster
+@url{https://en.wikipedia.org/wiki/Zstd, zstd}, before sending via
+@command{nncp-file}.
 
 There are plenty of software acting like HTTP proxy for your browser,
 allowing to view that WARC files. However you can extract files from
index 944859251df088ea64fffa2415770e8e26bc1cda..c5582efb9135652b13b9bd0b6acfe48a409af333 100755 (executable)
@@ -19,6 +19,6 @@ wget \
     --no-warc-compression \
     --no-warc-keep-log \
     $cmdline || :
-xz -9 "$name".warc
-nncp-file -nice $NNCP_NICE "$name".warc.xz $NNCP_SENDER:
+zstd --rm "$name".warc
+nncp-file -nice $NNCP_NICE "$name".warc.zst $NNCP_SENDER:
 rm -r $tmp
index 5f80d81190264be7c68269309fb3fc580eef8b94..dea60fbf15ac29361488146e195081b127032bfa 100755 (executable)
@@ -5,6 +5,6 @@ read cmdline
 
 tmp=$(mktemp)
 wget --output-document=$tmp $cmdline
-xz -9 $tmp
-nncp-file -nice $NNCP_NICE $tmp.xz $NNCP_SENDER:$name.xz
-rm $tmp.xz
+zstd --rm $tmp
+nncp-file -nice $NNCP_NICE $tmp.zst $NNCP_SENDER:$name.zst
+rm $tmp.zst