diff options
Diffstat (limited to 'gnu/usr.bin/man/makewhatis/makewhatis.sh')
-rw-r--r-- | gnu/usr.bin/man/makewhatis/makewhatis.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/usr.bin/man/makewhatis/makewhatis.sh b/gnu/usr.bin/man/makewhatis/makewhatis.sh index 1d86d19..28b871d 100644 --- a/gnu/usr.bin/man/makewhatis/makewhatis.sh +++ b/gnu/usr.bin/man/makewhatis/makewhatis.sh @@ -30,9 +30,16 @@ do then for f in `find $subdir -type f -print` do + suffix=`echo $f | sed -e 's/.*\\.//'` + if [ ".$suffix" = "%compext%" ]; then + output=%zcat% + else + output=cat + fi + $output $f | \ sed -n '/^\.TH.*$/p /^\.Dt.*$/p - /^\.S[hH][ ]*NAME/,/^\.S[hH]/p' $f |\ + /^\.S[hH][ ]*NAME/,/^\.S[hH]/p'|\ sed -e 's/\\[ ]*\-/-/ s/^.P[Pp].*$// s/\\(em// |