diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-05-25 18:05:34 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-05-25 18:05:34 +0000 |
commit | 560f1af8b329f36958e8eec3c820e8aa1dc0ed40 (patch) | |
tree | 64020518a794d309ee9a191fe6020fe6552fafc0 /sys-apps/less | |
parent | ppc stable, bug #179583 (diff) | |
download | gentoo-2-560f1af8b329f36958e8eec3c820e8aa1dc0ed40.tar.gz gentoo-2-560f1af8b329f36958e8eec3c820e8aa1dc0ed40.tar.bz2 gentoo-2-560f1af8b329f36958e8eec3c820e8aa1dc0ed40.zip |
add `file` detection of cpio archives
(Portage version: 2.1.2.7)
Diffstat (limited to 'sys-apps/less')
-rw-r--r-- | sys-apps/less/files/lesspipe.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh index e8c8d4207f7a..b8a30c74eaee 100644 --- a/sys-apps/less/files/lesspipe.sh +++ b/sys-apps/less/files/lesspipe.sh @@ -26,6 +26,7 @@ lesspipe_file() { *" shared object"*) lesspipe "$1" ".so" ;; *" Zip archive"*) lesspipe "$1" ".zip" ;; *" LHa"*archive*) lesspipe "$1" ".lha" ;; + *" cpio archive"*) lesspipe "$1" ".cpio" ;; *" ELF "*) readelf -a -- "$1" ;; *": data") hexdump -C -- "$1" ;; *) return 1 ;; @@ -194,7 +195,7 @@ if [[ -z $1 ]] ; then echo "Usage: lesspipe.sh <file>" elif [[ $1 == "-V" ]] ; then Id="cvsid" - cvsid="$Id: lesspipe.sh,v 1.22 2007/04/24 07:40:31 vapier Exp $" + cvsid="$Id: lesspipe.sh,v 1.23 2007/05/25 18:05:34 vapier Exp $" cat <<-EOF $cvsid Copyright 2001-2006 Gentoo Foundation |