gzip/xz_lzma_zstd.patch
Dirk Mueller 552405e9ee Accepting request 973066 from home:dimstar:Factory
- Rename xz_lzma.patch xz_lzma_zstd.patch and expand the patch to
  supprt zstd compression (boo#1198922).

OBS-URL: https://build.opensuse.org/request/show/973066
OBS-URL: https://build.opensuse.org/package/show/Base:System/gzip?expand=0&rev=89
2022-04-27 09:39:29 +00:00

34 lines
813 B
Diff

Index: gzip-1.12/zgrep.1
===================================================================
--- gzip-1.12.orig/zgrep.1
+++ gzip-1.12/zgrep.1
@@ -11,7 +11,7 @@ The
.B zgrep
command invokes
.B 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
.BR grep .
If no file is specified, then the standard input is decompressed
Index: gzip-1.12/zgrep.in
===================================================================
--- gzip-1.12.orig/zgrep.in
+++ gzip-1.12/zgrep.in
@@ -215,6 +215,15 @@ do
*.bz2)
uncompress=bzip2
;;
+ *.xz)
+ uncompress=xz
+ ;;
+ *.lzma)
+ uncompress=lzma
+ ;;
+ *.zst)
+ uncompress=zstd
+ ;;
*)
uncompress=gzip
;;