Replace some g_assert with g_error.
[mono-project.git] / scripts / mod.in
blob49f402c0bdbfcaa081b624bd954f000e6034c0e4
1 #!/bin/sh
3 prefix=@prefix@
4 exec_prefix=@exec_prefix@
5 monodocdir=@monodocdir@
7 if test "x$1" = x; then
8 echo Usage is: mod TOPIC
9 exit 1;
12 MOD="@bindir@/@mono_interp@ $MONO_OPTIONS @mono_instdir@/@framework_version@/@exe_name@.exe"
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