From 4eb83e32046a6d670862bc91c3d82530963b455e Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 19 Mar 2011 13:08:22 +0200 Subject: Scripts: Add lzop (.lzo) support to xzdiff and xzgrep. --- src/scripts/xzgrep.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/scripts/xzgrep.in') diff --git a/src/scripts/xzgrep.in b/src/scripts/xzgrep.in index bfa9fb53..84df94b7 100644 --- a/src/scripts/xzgrep.in +++ b/src/scripts/xzgrep.in @@ -22,10 +22,10 @@ # Instead of unsetting XZ_OPT, just make sure that xz will use file format # autodetection. This way memory usage limit and thread limit can be -# specified via XZ_OPT. With gzip and bzip2 it's OK to just unset the +# specified via XZ_OPT. With gzip, bzip2, and lzop it's OK to just unset the # environment variables. xz='@xz@ --format=auto' -unset GZIP BZIP BZIP2 +unset GZIP BZIP BZIP2 LZOP case ${0##/*} in *egrep*) prog=xzegrep; grep=${GREP:-egrep};; @@ -149,6 +149,7 @@ for i; do case $i in *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) uncompress="gzip -cdfq";; *[-.]bz2 | *[-.]tbz | *.tbz2) uncompress="bzip2 -cdfq";; + *[-.]lzo | *[-.]tzo) uncompress="lzop -cdfq";; *) uncompress="$xz -cdfq";; esac # Fail if xz or grep (or sed) fails. -- cgit v1.2.3