Ticket #1686: use dvicat if dvi2tty not found

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2012-10-05 10:50:13 +03:00 committed by Andrew Borodin
parent 246c072e24
commit 1aa122b765

View File

@ -70,7 +70,9 @@ do_view_action() {
strings "${MC_EXT_FILENAME}" strings "${MC_EXT_FILENAME}"
;; ;;
dvi) dvi)
dvi2tty "${MC_EXT_FILENAME}" which dvi2tty >/dev/null 2>&1 && \
dvi2tty "${MC_EXT_FILENAME}" || \
catdvi "${MC_EXT_FILENAME}"
;; ;;
djvu) djvu)
djvused -e print-pure-txt "${MC_EXT_FILENAME}" djvused -e print-pure-txt "${MC_EXT_FILENAME}"