X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=scripts%2Fmod.in;h=49f402c0bdbfcaa081b624bd954f000e6034c0e4;hb=c9fc371e31f577834582077ab8aee7682d1985bb;hp=0213d056fa6bc509541c5c329032722b3b4cc483;hpb=ed665002174c251885b836ef1db4fa8fb48d8c44;p=mono.git diff --git a/scripts/mod.in b/scripts/mod.in index 0213d056fa6..49f402c0bdb 100644 --- a/scripts/mod.in +++ b/scripts/mod.in @@ -9,11 +9,13 @@ if test "x$1" = x; then exit 1; fi -if `which lynx >& /dev/null` > /dev/null; then - @RUNTIME@ $monodocdir/mod.exe "$1" | lynx -dump -stdin -force_html | ${PAGER:-more} +MOD="@bindir@/@mono_interp@ $MONO_OPTIONS @mono_instdir@/@framework_version@/@exe_name@.exe" + +if `which lynx >/dev/null 2>&1` > /dev/null; then + $MOD "$1" | lynx -dump -stdin -force_html | ${PAGER:-more} else tmp=$HOME/.monodoc-tmp-$$ - @RUNTIME@ $monodocdir/mod.exe "$1" > $tmp + $MOD "$1" > $tmp links -dump -force-html $tmp | ${PAGER:-more} rm $tmp fi