slitaz-base-files rev 41

man: add html manpages
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 16 10:09:42 2008 +0000 (2008-07-16)
parents 481a7361007f
children 4b5b837e4791
files rootfs/etc/profile
line diff
     1.1 --- a/rootfs/etc/profile	Wed Jul 16 10:06:18 2008 +0000
     1.2 +++ b/rootfs/etc/profile	Wed Jul 16 10:09:42 2008 +0000
     1.3 @@ -65,6 +65,10 @@
     1.4  		esac
     1.5  		return
     1.6  	fi
     1.7 +	if [ -f $i/$TOPIC.html]; then
     1.8 +		retawq --dump=file:///$i/$TOPIC.html | less -M
     1.9 +		return
    1.10 +	fi
    1.11  done
    1.12  wget -O - "http://man.he.net/?topic=$TOPIC&section=$SECTION" 2> /dev/null | \
    1.13  	awk "BEGIN { s=0; n=0 } /<PRE>/ { s=1 } { if (s) { print; n++} } /<\/PRE>/ { s=0 } END { if (n == 0) print \"No manual entry for $TOPIC$MSG\" }" | \