Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / scripts / mod.in
index 0213d056fa6bc509541c5c329032722b3b4cc483..49f402c0bdbfcaa081b624bd954f000e6034c0e4 100644 (file)
@@ -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