Ticket #3509: fix not portable invocation of man.

mc called "man -l" to display man page files, which is not correct on OS X,
FreeBSD, etc, so patch out the -l to make it work.

Original patch: https://svnweb.freebsd.org/ports/head/misc/mc/files/patch-misc__ext.d__text.sh.in?annotate=382039&pathrev=382039

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Ranjan1018 2016-01-03 08:36:55 +03:00 committed by Andrew Borodin
parent 4d92e9191e
commit 7dc7eb3d14

View File

@ -48,7 +48,7 @@ do_view_action() {
cat "${MC_EXT_FILENAME}"
;;
*)
MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat -l "${MC_EXT_FILENAME}"
MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat "${MC_EXT_FILENAME}"
;;
esac
;;
@ -69,7 +69,7 @@ do_view_action() {
*)
# "man" takes care of uncompressing.
# This way the stdin is left intact so the correct width is used.
MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat -l "${MC_EXT_FILENAME}"
MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat "${MC_EXT_FILENAME}"
;;
esac
;;