slitaz-base-files rev 46 2.3
man: take a look at mirror.slitaz.org
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 16 11:04:21 2008 +0000 (2008-07-16) |
parents | fe0055196ad1 |
children | be6a7ade0f2d |
files | rootfs/etc/profile |
line diff
1.1 --- a/rootfs/etc/profile Wed Jul 16 10:47:42 2008 +0000 1.2 +++ b/rootfs/etc/profile Wed Jul 16 11:04:21 2008 +0000 1.3 @@ -70,7 +70,8 @@ 1.4 return 1.5 fi 1.6 done 1.7 -wget -O - "http://man.he.net/?topic=$TOPIC§ion=$SECTION" 2> /dev/null | \ 1.8 +(wget -O - "http://mirror.slitaz.org/man/$SECTION/$TOPIC.html" || \ 1.9 + wget -O - "http://man.he.net/?topic=$TOPIC§ion=$SECTION") 2> /dev/null | \ 1.10 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\" }" | \ 1.11 sed -e 's/<[^>]*>//g' -e 's/</</g' -e 's/>/>/g' -e 's/&/\&/g' | less -M 1.12 }