diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-11-06 01:58:44 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-11-06 01:58:44 +0000 |
commit | 01d0611d0d2b130c4f11baf2f0f5505d166c38cd (patch) | |
tree | 973f78436a755ffba5708efa7432a52faffb4ee8 /sys-apps/less/files | |
parent | remove beryl (diff) | |
download | gentoo-2-01d0611d0d2b130c4f11baf2f0f5505d166c38cd.tar.gz gentoo-2-01d0611d0d2b130c4f11baf2f0f5505d166c38cd.tar.bz2 gentoo-2-01d0611d0d2b130c4f11baf2f0f5505d166c38cd.zip |
add support for LZMA files
(Portage version: 2.1.3.16)
Diffstat (limited to 'sys-apps/less/files')
-rw-r--r-- | sys-apps/less/files/lesspipe.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh index 471dcddad51d..ba183b944c1a 100644 --- a/sys-apps/less/files/lesspipe.sh +++ b/sys-apps/less/files/lesspipe.sh @@ -50,7 +50,7 @@ lesspipe() { local out=$(${DECOMPRESSOR} -- "$1" | file -) case ${out} in *troff*) - # Need to make sure we pass path to man or it will try + # Need to make sure we pass path to man or it will try # to locate "$1" in the man search paths if [[ $1 == /* ]] ; then man -- "$1" @@ -86,10 +86,12 @@ lesspipe() { *.tar) tar tvvf "$1" ;; *.tar.bz2|*.tbz2|*.tbz) tar tjvvf "$1" ;; *.tar.gz|*.tgz|*.tar.z) tar tzvvf "$1" ;; + *.tar.lzma) lzma -dc -- "$1" | tar tvvf - ;; ### Misc archives ### *.bz2) bzip2 -dc -- "$1" ;; *.gz|*.z) gzip -dc -- "$1" ;; + *.lzma) lzma -dc -- "$1" ;; *.zip) unzip -l "$1" ;; *.rpm) rpm -qpivl --changelog -- "$1" ;; *.cpi|*.cpio) cpio -itv < "$1" ;; @@ -195,7 +197,7 @@ if [[ -z $1 ]] ; then echo "Usage: lesspipe.sh <file>" elif [[ $1 == "-V" ]] ; then Id="cvsid" - cvsid="$Id: lesspipe.sh,v 1.24 2007/08/25 15:42:52 vapier Exp $" + cvsid="$Id: lesspipe.sh,v 1.25 2007/11/06 01:58:44 vapier Exp $" cat <<-EOF $cvsid Copyright 2001-2006 Gentoo Foundation |