#!/bin/sh

prefix=@prefix@
exec_prefix=@exec_prefix@
monodocdir=@monodocdir@

if test "x$1" = x; then
    echo Usage is: mod TOPIC
    exit 1;
fi

MOD="/Applications/buildAgent/work/b59ae78cff80e584/tmp/monoprefix/bin/mono $MONO_OPTIONS /Applications/buildAgent/work/b59ae78cff80e584/tmp/monoprefix/lib/mono/1.0/mod.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-$$
    $MOD "$1" > $tmp
    links -dump -force-html $tmp | ${PAGER:-more}
    rm $tmp
fi
