25 lines
869 B
Diff
25 lines
869 B
Diff
|
---
|
||
|
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 which wvHtml >/dev/null 2>&1; then
|
||
|
+ if which wvHtml >/dev/null 2>&1 && which 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 which xlhtml >/dev/null 2>&1; then
|
||
|
+ if which xlhtml >/dev/null 2>&1 && which 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"
|