Initialize for gzip

This commit is contained in:
zyppe 2024-02-07 23:17:56 +08:00
commit 9552601852
17 changed files with 2467 additions and 0 deletions

33
xz_lzma_zstd.patch Normal file
View file

@ -0,0 +1,33 @@
Index: gzip-1.10/zgrep.1
===================================================================
--- gzip-1.10.orig/zgrep.1
+++ gzip-1.10/zgrep.1
@@ -11,7 +11,7 @@ The
.I Zgrep
invokes
.I grep
-on compressed or gzipped files.
+on compressed, xz'ed, lzma'ed, zstd'ed, bzip2'ed or gzipped files.
All options specified are passed directly to
.IR grep .
If no file is specified, then the standard input is decompressed
Index: gzip-1.10/zgrep.in
===================================================================
--- gzip-1.10.orig/zgrep.in
+++ gzip-1.10/zgrep.in
@@ -215,6 +215,15 @@ do
*.bz2)
uncompress=bzip2
;;
+ *.xz)
+ uncompress=xz
+ ;;
+ *.lzma)
+ uncompress=lzma
+ ;;
+ *.zst)
+ uncompress=zstd
+ ;;
*)
uncompress=gzip
;;