# HG changeset patch # User Pascal Bellard # Date 1216206261 0 # Node ID 2924eaa036c31fd3ff07d2b63ac6a6b4c5ce1825 # Parent fe0055196ad18fc7607a0d6c200891409a2e1af7 man: take a look at mirror.slitaz.org diff -r fe0055196ad1 -r 2924eaa036c3 rootfs/etc/profile --- a/rootfs/etc/profile Wed Jul 16 10:47:42 2008 +0000 +++ b/rootfs/etc/profile Wed Jul 16 11:04:21 2008 +0000 @@ -70,7 +70,8 @@ return fi done -wget -O - "http://man.he.net/?topic=$TOPIC§ion=$SECTION" 2> /dev/null | \ +(wget -O - "http://mirror.slitaz.org/man/$SECTION/$TOPIC.html" || \ + 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\" }" | \
 	sed -e 's/<[^>]*>//g' -e 's/<//g' -e 's/&/\&/g' | less -M
 }