# HG changeset patch # User Pascal Bellard # Date 1216202982 0 # Node ID 8764174b881f244989bb7949f474ea742749051f # Parent 481a7361007ffb11f18baeb3e714d8a3e4d5ee04 man: add html manpages diff -r 481a7361007f -r 8764174b881f rootfs/etc/profile --- a/rootfs/etc/profile Wed Jul 16 10:06:18 2008 +0000 +++ b/rootfs/etc/profile Wed Jul 16 10:09:42 2008 +0000 @@ -65,6 +65,10 @@ esac return fi + if [ -f $i/$TOPIC.html]; then + retawq --dump=file:///$i/$TOPIC.html | less -M + return + fi done wget -O - "http://man.he.net/?topic=$TOPIC§ion=$SECTION" 2> /dev/null | \ awk "BEGIN { s=0; n=0 } /
/ { s=1 } { if (s) { print; n++} } /<\/PRE>/ { s=0 } END { if (n == 0) print \"No manual entry for $TOPIC$MSG\" }" | \