summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-23 00:35:38 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-23 00:35:38 +0000
commit6cdbcfce77f3c4c3df76c73a2877ed5f7accf05b (patch)
tree1aefe48bfcf510fd56791688bb2b8bc4aca342a6 /sys-apps/less
parentVersion bump #116423 by Christian Gmeiner. (diff)
downloadgentoo-2-6cdbcfce77f3c4c3df76c73a2877ed5f7accf05b.tar.gz
gentoo-2-6cdbcfce77f3c4c3df76c73a2877ed5f7accf05b.tar.bz2
gentoo-2-6cdbcfce77f3c4c3df76c73a2877ed5f7accf05b.zip
colorize eclass/ebuilds as shellscripts #116419 by Rajiv Manglani.
(Portage version: 2.0.53)
Diffstat (limited to 'sys-apps/less')
-rw-r--r--sys-apps/less/files/code2color.patch9
-rw-r--r--sys-apps/less/files/lesspipe.sh4
2 files changed, 11 insertions, 2 deletions
diff --git a/sys-apps/less/files/code2color.patch b/sys-apps/less/files/code2color.patch
index d330623544bd..a841574f9894 100644
--- a/sys-apps/less/files/code2color.patch
+++ b/sys-apps/less/files/code2color.patch
@@ -8,3 +8,12 @@
return \$code;
};
+@@ -3192,7 +3192,7 @@
+ #
+
+ $LANGUAGE{'shellscript'} = {
+- 'filename' => '\\.(sh|shell)$',
++ 'filename' => '\\.(ebuild|eclass|sh|shell)$',
+ 'regex' => '^\\s*#\\s*![^\\s]*(sh|bash|ash|zsh|ksh)',
+ 'patterns' => [ {
+ 'name' => 'comment',
diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh
index 6d014cd8ed62..629a15b30368 100644
--- a/sys-apps/less/files/lesspipe.sh
+++ b/sys-apps/less/files/lesspipe.sh
@@ -130,7 +130,7 @@ lesspipe() {
*.awk|*.groff|*.java|*.js|*.m4|*.php|*.pl|*.pm|*.pod|*.sh|\
*.ad[asb]|*.asm|*.inc|*.[ch]|*.[ch]pp|*.[ch]xx|*.cc|*.hh|\
*.lsp|*.l|*.pas|*.p|*.xml|*.xps|*.xsl|*.axp|*.ppd|*.pov|\
- *.diff|*.patch|*.py|*.rb|*.sql)
+ *.diff|*.patch|*.py|*.rb|*.sql|*.ebuild|*.eclass)
# Allow people to flip color off if they dont want it
case ${LESSCOLOR} in
@@ -185,7 +185,7 @@ if [[ -z $1 ]] ; then
echo "Usage: lesspipe.sh <file>"
elif [[ $1 == "-V" ]] ; then
Id="cvsid"
- cvsid="$Id: lesspipe.sh,v 1.13 2005/11/26 00:32:53 vapier Exp $"
+ cvsid="$Id: lesspipe.sh,v 1.14 2005/12/23 00:35:38 vapier Exp $"
cat <<-EOF
$cvsid
Copyright 2001-2005 Gentoo Foundation