setup/install.sh: transparently deal with gzipped manpages

[ci skip]
This commit is contained in:
maxice8 2018-08-07 17:55:59 -03:00
parent 7b6b2a1d06
commit e42406c070
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

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