hooks/uncompress-manpages: make it less verbose.

This commit is contained in:
Juan RP 2014-07-12 17:10:40 +02:00
parent adace6585e
commit 85a0d8034e

View file

@ -12,16 +12,14 @@ hook() {
return 0
fi
echo " Uncompressing manpages..."
# rewrite symlinks
find $mandir -type l -regex '.*\.\(gz\|bz2\)' | while read f
do
lnkat=$(readlink "$f")
ln -vs ${lnkat%.*} ${f%.*}
ln -s ${lnkat%.*} ${f%.*}
rm $f
done
find $mandir -type f -name '*.gz' -exec gunzip -v {} +
find $mandir -type f -name '*.bz2' -exec bunzip2 -v {} +
find $mandir -type f -name '*.gz' -exec gunzip -v {} + &>/dev/null
find $mandir -type f -name '*.bz2' -exec bunzip2 -v {} + &>/dev/null
}