setup/install.sh: transparently deal with gzipped manpages
[ci skip]
This commit is contained in:
parent
7b6b2a1d06
commit
e42406c070
1 changed files with 8 additions and 0 deletions
|
@ -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]}
|
||||
|
|
Loading…
Reference in a new issue