1 |
vapier 13/01/30 07:08:38 |
2 |
|
3 |
Modified: lesspipe.sh |
4 |
Added: code2color-0.2.patch |
5 |
Log: |
6 |
Update code2color script info #454574 by Csaba Péter. |
7 |
|
8 |
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key FB7C4156) |
9 |
|
10 |
Revision Changes Path |
11 |
1.50 sys-apps/less/files/lesspipe.sh |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/less/files/lesspipe.sh?rev=1.50&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/less/files/lesspipe.sh?rev=1.50&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/less/files/lesspipe.sh?r1=1.49&r2=1.50 |
16 |
|
17 |
Index: lesspipe.sh |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/less/files/lesspipe.sh,v |
20 |
retrieving revision 1.49 |
21 |
retrieving revision 1.50 |
22 |
diff -u -r1.49 -r1.50 |
23 |
--- lesspipe.sh 22 Nov 2012 04:20:15 -0000 1.49 |
24 |
+++ lesspipe.sh 30 Jan 2013 07:08:38 -0000 1.50 |
25 |
@@ -218,7 +218,7 @@ |
26 |
# 1: ... or we know less will handle raw codes -- this will |
27 |
# not detect -seiRM, so set LESSCOLORIZER yourself |
28 |
if [[ ${LESSCOLOR} == "2" ]] || [[ " ${LESS} " == *" -"[rR]" "* ]] ; then |
29 |
- ${LESSCOLORIZER} "$1" |
30 |
+ LESSQUIET=true ${LESSCOLORIZER} "$1" |
31 |
fi |
32 |
fi |
33 |
|
34 |
@@ -233,7 +233,7 @@ |
35 |
elif [[ $1 == "-V" || $1 == "--version" ]] ; then |
36 |
Id="cvsid" |
37 |
cat <<-EOF |
38 |
- $Id: lesspipe.sh,v 1.49 2012/11/22 04:20:15 vapier Exp $ |
39 |
+ $Id: lesspipe.sh,v 1.50 2013/01/30 07:08:38 vapier Exp $ |
40 |
Copyright 2001-2010 Gentoo Foundation |
41 |
Mike Frysinger <vapier@g.o> |
42 |
(with plenty of ideas stolen from other projects/distros) |
43 |
|
44 |
|
45 |
|
46 |
1.1 sys-apps/less/files/code2color-0.2.patch |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/less/files/code2color-0.2.patch?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/less/files/code2color-0.2.patch?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: code2color-0.2.patch |
52 |
=================================================================== |
53 |
--- code2color |
54 |
+++ code2color |
55 |
@@ -163,11 +163,11 @@ |
56 |
# building up the database |
57 |
# newer entries overwrite old ones |
58 |
my @CONFIG_FILES; |
59 |
- push @CONFIG_FILES, "/etc/code2html.config"; |
60 |
+ push @CONFIG_FILES, "/etc/code2color"; |
61 |
push @CONFIG_FILES, |
62 |
- $ENV{'HOME'}."/.code2html.config" if $ENV{'HOME'}; |
63 |
+ $ENV{'HOME'}."/.code2color" if $ENV{'HOME'}; |
64 |
push @CONFIG_FILES, |
65 |
- split(/:/,$ENV{'CODE2HTML_CONFIG'}) if $ENV{'CODE2HTML_CONFIG'}; |
66 |
+ split(/:/,$ENV{'CODE2COLOR_CONFIG'}) if $ENV{'CODE2COLOR_CONFIG'}; |
67 |
push @CONFIG_FILES, |
68 |
split(/:/,$params{'langfile'}) if $params{'langfile'}; |
69 |
|
70 |
@@ -3192,7 +3192,7 @@ |
71 |
# |
72 |
|
73 |
$LANGUAGE{'shellscript'} = { |
74 |
- 'filename' => '\\.(sh|shell)$', |
75 |
+ 'filename' => '\\.(ebuild|eclass|sh|shell)$', |
76 |
'regex' => '^\\s*#\\s*![^\\s]*(sh|bash|ash|zsh|ksh)', |
77 |
'patterns' => [ { |
78 |
'name' => 'comment', |