# HG changeset patch # User Pascal Bellard # Date 1216202778 0 # Node ID 481a7361007ffb11f18baeb3e714d8a3e4d5ee04 # Parent a2a099ded78bb28a67e85dbe57cecda04f2c1da1 man: accept unpacked man pages diff -r a2a099ded78b -r 481a7361007f rootfs/etc/profile --- a/rootfs/etc/profile Wed Jul 16 09:49:08 2008 +0000 +++ b/rootfs/etc/profile Wed Jul 16 10:06:18 2008 +0000 @@ -57,8 +57,12 @@ return fi for i in /usr/share/$LC_ALL/man$MAN_SECTION /usr/share/man$MAN_SECTION; do - if [ -f $i/$TOPIC.* ]; then - (zcat $i/$TOPIC.* || unlzma -c $i/$TOPIC.* 2>/dev/null)|less -M + if [ -f $i/raw-$TOPIC.* ]; then + i=$(ls $i/raw-$TOPIC.*) + case "$i" in + *gz) (zcat $i || || unlzma -c $i 2> /dev/null) | less -M;; + *) less -M $i;; + esac return fi done