mc/mc-extd-doc.patch

25 lines
899 B
Diff
Raw Normal View History

---
misc/ext.d/doc.sh.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/misc/ext.d/doc.sh.in
+++ b/misc/ext.d/doc.sh.in
@@ -52,7 +52,7 @@ do_view_action() {
fi
;;
msdoc)
- if command -v wvHtml >/dev/null 2>&1; then
+ if command -v wvHtml >/dev/null 2>&1 && command -v elinks >/dev/null 2>&1; then
tmp=`mktemp -d ${TMPDIR:-/tmp}/%p.XXXXXX`
wvHtml "${MC_EXT_FILENAME}" --targetdir="$tmp" page.html
elinks -dump "$tmp/page.html"
@@ -68,7 +68,7 @@ do_view_action() {
fi
;;
msxls)
- if command -v xlhtml >/dev/null 2>&1; then
+ if command -v xlhtml >/dev/null 2>&1 && command -v elinks >/dev/null 2>&1; then
tmp=`mktemp -d ${TMPDIR:-/tmp}/%p.XXXXXX`
xlhtml -a "${MC_EXT_FILENAME}" > "$tmp/page.html"
elinks -dump "$tmp/page.html"