aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-11-11 13:16:21 +0200
committerLasse Collin <lasse.collin@tukaani.org>2022-11-11 13:16:21 +0200
commit3c7860cf49de6f81046b3a4034a89f3a4803a576 (patch)
tree1f6f90b80690f5ad9ff3e3934adcc33f4b115fa6 /src
parentScripts: Ignore warnings from xz. (diff)
downloadxz-3c7860cf49de6f81046b3a4034a89f3a4803a576.tar.xz
xzdiff: Add support for .lz files.
The other scripts don't need changes for .lz support because in those scripts it is enough that xz supports .lz.
Diffstat (limited to 'src')
-rw-r--r--src/scripts/xzdiff.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/scripts/xzdiff.in b/src/scripts/xzdiff.in
index 389921d8..c17d78b2 100644
--- a/src/scripts/xzdiff.in
+++ b/src/scripts/xzdiff.in
@@ -73,7 +73,7 @@ exec 3>&1
if test $# -eq 1; then
case $1 in
- *[-.]xz | *[-.]lzma | *.t[lx]z)
+ *[-.]xz | *[-.]lzma | *[-.]lz | *.t[lx]z)
;;
*[-.]bz2 | *.tbz | *.tbz2)
xz1=bzip2;;
@@ -88,7 +88,7 @@ if test $# -eq 1; then
exit 2;;
esac
case $1 in
- *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lzo | *[-.]zst)
+ *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *[-.]lzo | *[-.]zst)
FILE=`expr "X$1" : 'X\(.*\)[-.][abglmostxzZ2]*$'`;;
*.t[abglx]z)
FILE=`expr "X$1" : 'X\(.*[-.]t\)[abglx]z$'`ar;;
@@ -117,9 +117,9 @@ elif test $# -eq 2; then
*[-.]zst | *.tzst) xz2='zstd -q';;
esac
case $1 in
- *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | -)
+ *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | -)
case "$2" in
- *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | -)
+ *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | -)
if test "$1$2" = --; then
xz_status=$(
exec 4>&1
@@ -183,7 +183,7 @@ elif test $# -eq 2; then
esac;;
*)
case "$2" in
- *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | -)
+ *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | -)
xz_status=$(
exec 4>&1
($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- |