mod.in 475 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. prefix=@prefix@
  3. exec_prefix=@exec_prefix@
  4. monodocdir=@monodocdir@
  5. if test "x$1" = x; then
  6. echo Usage is: mod TOPIC
  7. exit 1;
  8. fi
  9. MOD="@bindir@/@mono_interp@ $MONO_OPTIONS @mono_instdir@/@framework_version@/@[email protected]"
  10. if `which lynx >/dev/null 2>&1` > /dev/null; then
  11. $MOD "$1" | lynx -dump -stdin -force_html | ${PAGER:-more}
  12. else
  13. tmp=$HOME/.monodoc-tmp-$$
  14. $MOD "$1" > $tmp
  15. links -dump -force-html $tmp | ${PAGER:-more}
  16. rm $tmp
  17. fi