summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-04-06 18:16:35 -0400
committerMike Frysinger <vapier@gentoo.org>2016-04-06 18:20:05 -0400
commitc1af53561c8f8bdf253f46c6b9e442fd457c5a45 (patch)
tree4a016bb3aa2eb30fb01cc924600ced3d8285115b /sys-apps/less
parentapp-antivirus/clamav-unofficial-sigs: add new version 5.0.6. (diff)
downloadgentoo-c1af53561c8f8bdf253f46c6b9e442fd457c5a45.tar.gz
gentoo-c1af53561c8f8bdf253f46c6b9e442fd457c5a45.tar.bz2
gentoo-c1af53561c8f8bdf253f46c6b9e442fd457c5a45.zip
sys-apps/less: lesspipe: split pdf/ps handling #477860
Diffstat (limited to 'sys-apps/less')
-rwxr-xr-xsys-apps/less/files/lesspipe.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh
index c0f30e307304..291d6d667817 100755
--- a/sys-apps/less/files/lesspipe.sh
+++ b/sys-apps/less/files/lesspipe.sh
@@ -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