* move libffi to base/ Category
[t2sde.git] / package / textproc / less / less.conf
blob96f4737784da19ad863324f53428e3cbac8fb780
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/less/less.conf
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
5
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 less_postmake() {
14         cp $confdir/lesspipe.sh $root$bindir/lesspipe
15         chmod +x $root$bindir/lesspipe
16         cat > $root/etc/profile.d/less <<-EOP
18 export LESS="--ignore-case"
19 export LESSOPEN="|lesspipe.sh %s"
21 if [ -f "`which lesspipe.sh`" ]; then
22         LESSOPEN="|`which lesspipe.sh` %s"
23 else
24         LESSOPEN="|lesspipe %s"
26         export LESSOPEN
27 EOP
30 hook_add postmake 3 "less_postmake"