Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/less/files: lesspipe.sh
Date: Fri, 30 May 2008 23:54:16
Message-Id: E1K2EQE-0003ye-Ol@stork.gentoo.org
1 vapier 08/05/30 23:54:10
2
3 Modified: lesspipe.sh
4 Log:
5 handle 7-zip archives via `file` so that things like sd7 files work magically
6 (Portage version: 2.2_pre5.spank.spunk)
7
8 Revision Changes Path
9 1.30 sys-apps/less/files/lesspipe.sh
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/less/files/lesspipe.sh?rev=1.30&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/less/files/lesspipe.sh?rev=1.30&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/less/files/lesspipe.sh?r1=1.29&r2=1.30
14
15 Index: lesspipe.sh
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sys-apps/less/files/lesspipe.sh,v
18 retrieving revision 1.29
19 retrieving revision 1.30
20 diff -u -r1.29 -r1.30
21 --- lesspipe.sh 18 Apr 2008 19:58:13 -0000 1.29
22 +++ lesspipe.sh 30 May 2008 23:54:10 -0000 1.30
23 @@ -21,6 +21,7 @@
24 local out=$(file -L -- "$1")
25 local suffix
26 case ${out} in
27 + *" 7-zip archive"*) suffix="7z";;
28 *" ar archive"*) suffix="a";;
29 *" CAB-Installer"*) suffix="cab";;
30 *" cpio archive"*) suffix="cpio";;
31 @@ -229,7 +230,7 @@
32 echo "Usage: lesspipe.sh <file>"
33 elif [[ $1 == "-V" || $1 == "--version" ]] ; then
34 Id="cvsid"
35 - cvsid="$Id: lesspipe.sh,v 1.29 2008/04/18 19:58:13 vapier Exp $"
36 + cvsid="$Id: lesspipe.sh,v 1.30 2008/05/30 23:54:10 vapier Exp $"
37 cat <<-EOF
38 $cvsid
39 Copyright 2001-2008 Gentoo Foundation
40
41
42
43 --
44 gentoo-commits@l.g.o mailing list