mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
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##*.}
|
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])?)\.(.*) ]]
|
if [[ $target =~ (.*)\.([a-z][a-z](_[A-Z][A-Z])?)\.(.*) ]]
|
||||||
then
|
then
|
||||||
name=${BASH_REMATCH[1]}.${BASH_REMATCH[4]}
|
name=${BASH_REMATCH[1]}.${BASH_REMATCH[4]}
|
||||||
|
|
Loading…
Add table
Reference in a new issue