From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-875006-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A1E3A59CAF for <garchives@archives.gentoo.org>; Wed, 6 Apr 2016 22:21:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2DA9721C0F0; Wed, 6 Apr 2016 22:21:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C474521C0F0 for <gentoo-commits@lists.gentoo.org>; Wed, 6 Apr 2016 22:21:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5CE60340D4A for <gentoo-commits@lists.gentoo.org>; Wed, 6 Apr 2016 22:21:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A333581 for <gentoo-commits@lists.gentoo.org>; Wed, 6 Apr 2016 22:21:13 +0000 (UTC) From: "Mike Frysinger" <vapier@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" <vapier@gentoo.org> Message-ID: <1459981205.c1af53561c8f8bdf253f46c6b9e442fd457c5a45.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/less/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/less/files/lesspipe.sh X-VCS-Directories: sys-apps/less/files/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: c1af53561c8f8bdf253f46c6b9e442fd457c5a45 X-VCS-Branch: master Date: Wed, 6 Apr 2016 22:21:13 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f2140e3e-a6a4-4c0e-99d6-9a813357a29a X-Archives-Hash: 02ee7c97495ec14bb8d61d6856ffd38c commit: c1af53561c8f8bdf253f46c6b9e442fd457c5a45 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Wed Apr 6 22:16:35 2016 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Wed Apr 6 22:20:05 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1af5356 sys-apps/less: lesspipe: split pdf/ps handling #477860 sys-apps/less/files/lesspipe.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh index c0f30e3..291d6d6 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