File xz_lzma_zstd.patch of Package gzip.24045

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
       ;;
openSUSE Build Service is sponsored by