Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / scripts / mod.in
1 #!/bin/sh
2
3 prefix=@prefix@
4 exec_prefix=@exec_prefix@
5 monodocdir=@monodocdir@
6
7 if test "x$1" = x; then
8     echo Usage is: mod TOPIC
9     exit 1;
10 fi
11
12 MOD="@bindir@/@mono_interp@ $MONO_OPTIONS @mono_instdir@/@framework_version@/@exe_name@.exe"
13
14 if `which lynx >/dev/null 2>&1` > /dev/null; then
15     $MOD "$1" | lynx -dump -stdin -force_html | ${PAGER:-more}
16 else
17     tmp=$HOME/.monodoc-tmp-$$
18     $MOD "$1" > $tmp
19     links -dump -force-html $tmp | ${PAGER:-more}
20     rm $tmp
21 fi