diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-03-19 13:08:22 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2011-03-19 13:08:22 +0200 |
commit | 4eb83e32046a6d670862bc91c3d82530963b455e (patch) | |
tree | 27bf7f51bab90921187310dba4eac464bbee9e0f /src/scripts/xzgrep.in | |
parent | xz: Add --block-size=SIZE. (diff) | |
download | xz-4eb83e32046a6d670862bc91c3d82530963b455e.tar.xz |
Scripts: Add lzop (.lzo) support to xzdiff and xzgrep.
Diffstat (limited to 'src/scripts/xzgrep.in')
-rw-r--r-- | src/scripts/xzgrep.in | 5 |
1 files changed, 3 insertions, 2 deletions
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. |