setup/install.sh: support bzipped (.bz2) manpages

This commit is contained in:
maxice8 2018-10-14 16:23:04 -03:00 committed by maxice8
parent 53a3772920
commit c714d13f37

View file

@ -67,6 +67,14 @@ _vman() {
suffix=${target##*.}
fi
if [[ $suffix == bz2 ]]
then
bunzip2 "$file"
file="${file:0:-4}"
target="${target:0:-4}"
suffix=${target##*.}
fi
if [[ $target =~ (.*)\.([a-z][a-z](_[A-Z][A-Z])?)\.(.*) ]]
then
name=${BASH_REMATCH[1]}.${BASH_REMATCH[4]}