From 3f5d948810fb898cc71617fa8a6e971007fec5ef Mon Sep 17 00:00:00 2001 From: Fridolin Pokorny Date: May 07 2013 12:43:29 +0000 Subject: Added lessfilter info to man (#948597) --- diff --git a/less-458-less-filters-man.patch b/less-458-less-filters-man.patch new file mode 100644 index 0000000..8e98bd7 --- /dev/null +++ b/less-458-less-filters-man.patch @@ -0,0 +1,22 @@ +diff -upr less-458_orig/less.nro less-458_work/less.nro +--- less-458_orig/less.nro 2013-05-07 14:20:52.237332235 +0200 ++++ less-458_work/less.nro 2013-05-07 14:22:23.142708098 +0200 +@@ -1228,6 +1228,18 @@ Similarly, if the first two characters o + the input pipe is used on standard input as well as other files. + Again, in this case the dash is not considered to be part of + the input pipe command. ++.PP ++There are used following files to set up default preprocessor: ++.br ++ /etc/profile.d/less.sh ++.br ++ /etc/profile.d/less.csh ++.br ++These files set up /usr/bin/lesspipe.sh as a default filter. An user defined ++filter can be specified in ~/.lessfilter. This file should have an execute bit ++set and accept only one parameter, which represents a filename. If ++the user defined filter process the file, zero should be returned. Otherwise ++~/.lessfilter tries to handle the file. + + .SH "NATIONAL CHARACTER SETS" + There are three types of characters in the input file: diff --git a/less.spec b/less.spec index d88fe03..a7f5085 100644 --- a/less.spec +++ b/less.spec @@ -15,6 +15,7 @@ Patch5: less-418-fsync.patch Patch6: less-436-manpage-add-old-bot-option.patch Patch7: less-436-help.patch Patch8: less-458-lessecho-usage.patch +Patch9: less-458-less-filters-man.patch URL: http://www.greenwoodsoftware.com/less/ Requires: groff-base BuildRequires: ncurses-devel @@ -39,6 +40,7 @@ files, and you'll use it frequently. %patch6 -p1 -b .manpage-add-old-bot-option %patch7 -p1 -b .help %patch8 -p1 -b .lessecho-usage +%patch9 -p1 -b .less-filters-man autoreconf chmod -R a+w * @@ -69,6 +71,7 @@ rm -rf $RPM_BUILD_ROOT %changelog - Expanded lessecho usage (#948597) +- Added lessfilter info to man (#948597) * Thu Apr 11 2013 Fridolin Pokorny - 458-2 - Added gpg support to lesspipe.sh (#885122)