From c714d13f3797cabf73d06e8deaeda93e3e70b7d6 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sun, 14 Oct 2018 16:23:04 -0300 Subject: [PATCH] setup/install.sh: support bzipped (.bz2) manpages --- common/environment/setup/install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/environment/setup/install.sh b/common/environment/setup/install.sh index f9772e03854..9e40bf7d8c7 100644 --- a/common/environment/setup/install.sh +++ b/common/environment/setup/install.sh @@ -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]}