setup/install.sh: support bzipped (.bz2) manpages
This commit is contained in:
parent
53a3772920
commit
c714d13f37
1 changed files with 8 additions and 0 deletions
|
@ -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]}
|
||||
|
|
Loading…
Reference in a new issue