Moving from monodoc/scripts to mono/scripts...
[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 if `which lynx >& /dev/null` > /dev/null; then
13     @RUNTIME@ $monodocdir/mod.exe "$1" | lynx -dump -stdin -force_html | ${PAGER:-more}
14 else
15     tmp=$HOME/.monodoc-tmp-$$
16     @RUNTIME@ $monodocdir/mod.exe "$1" > $tmp
17     links -dump -force-html $tmp | ${PAGER:-more}
18     rm $tmp
19 fi