# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/less/less.conf # Copyright (C) 2004 - 2022 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- less_postmake() { cp $confdir/lesspipe.sh $root$bindir/lesspipe chmod +x $root$bindir/lesspipe cat > $root/etc/profile.d/less <<-EOP export LESS="--ignore-case" export LESSOPEN="|lesspipe.sh %s" if [ -f "`which lesspipe.sh`" ]; then LESSOPEN="|`which lesspipe.sh` %s" else LESSOPEN="|lesspipe %s" fi export LESSOPEN EOP } hook_add postmake 3 "less_postmake"