slitaz-base-files rev 40
man: accept unpacked man pages
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 16 10:06:18 2008 +0000 (2008-07-16) |
parents | a2a099ded78b |
children | 8764174b881f |
files | rootfs/etc/profile |
line diff
1.1 --- a/rootfs/etc/profile Wed Jul 16 09:49:08 2008 +0000 1.2 +++ b/rootfs/etc/profile Wed Jul 16 10:06:18 2008 +0000 1.3 @@ -57,8 +57,12 @@ 1.4 return 1.5 fi 1.6 for i in /usr/share/$LC_ALL/man$MAN_SECTION /usr/share/man$MAN_SECTION; do 1.7 - if [ -f $i/$TOPIC.* ]; then 1.8 - (zcat $i/$TOPIC.* || unlzma -c $i/$TOPIC.* 2>/dev/null)|less -M 1.9 + if [ -f $i/raw-$TOPIC.* ]; then 1.10 + i=$(ls $i/raw-$TOPIC.*) 1.11 + case "$i" in 1.12 + *gz) (zcat $i || || unlzma -c $i 2> /dev/null) | less -M;; 1.13 + *) less -M $i;; 1.14 + esac 1.15 return 1.16 fi 1.17 done