06/05/2009 8:20 AM
post30945
|
On Fri, Jun 05, 2009 at 07:43:08AM -0400, Leet Geezer wrote:
> As I recall there was gnu man for older QNX versions, from software installer.
>
> I cannot find a way to install man under current version. Many packages from pkgsrc install man files which I am
unable to view.
>
> Anybody knows how to install man on 6.4.1?
This is on my list. For now you can 'nroff -man <manpage> | less -r'.
-seanb
|
|
|
06/10/2009 2:28 AM
post31305
|
very simple man :)
---
#!/bin/sh
[ -z "$MANPATH" ] && MANPATH="/usr/pkg/man/man[0-9] /usr/local/man/man[0-9]"
[ -z "$MANPAGER" ] && MANPAGER="less -ris"
case "$#" in
1)
MANFINDPARAM="$1.*"
;;
2)
MANFINDPARAM="$2.$1"
;;
*)
echo "Usage: $0 [section] name"
exit 0
;;
esac
MANFILE=`find $MANPATH -name $MANFINDPARAM \( -type f -o -type l \) -print | head -n 1`
[ -z "$MANFILE" ] && echo "No manual entry for $MANFINDPARAM" && exit 1
nroff -man $MANFILE | $MANPAGER
--
|
|
|