src-hilite-lesspipe.sh
1 #!/bin/sh 2 3 for source in "$@"; do 4 case $source in 5 *ChangeLog | *changelog) 6 source-highlight \ 7 --failsafe \ 8 -f esc \ 9 --lang-def=changelog.lang \ 10 --style-file=esc.style \ 11 -i "$source" 12 ;; 13 *Makefile | *makefile) 14 source-highlight \ 15 --failsafe \ 16 -f esc \ 17 --lang-def=makefile.lang \ 18 --style-file=esc.style \ 19 -i "$source" 20 ;; 21 *) source-highlight \ 22 --failsafe \ 23 --infer-lang \ 24 -f esc \ 25 --style-file=esc.style \ 26 -i "$source" ;; 27 esac 28 done