sys-apps/less: lesspipe: split pdf/ps handling #477860

This commit is contained in:
Mike Frysinger
2016-04-06 18:16:35 -04:00
parent 406e7ae63d
commit c1af53561c

View File

@@ -99,7 +99,8 @@ lesspipe() {
esac
;;
*.dvi) dvi2tty "$1" ;;
*.ps|*.pdf) ps2ascii "$1" || pstotext "$1" || pdftotext "$1" ;;
*.ps) ps2ascii "$1" || pstotext "$1" ;;
*.pdf) pdftotext "$1" - || ps2ascii "$1" || pstotext "$1" ;;
*.doc) antiword "$1" || catdoc "$1" ;;
*.rtf) unrtf --nopict --text "$1" ;;
*.conf|*.txt|*.log) ;; # force less to work on these directly #150256