summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-11-22 00:27:02 +0000
committerSam James <sam@gentoo.org>2022-11-22 00:30:57 +0000
commita1ac514c7a541d02d5363eed6bd68b8183fc479c (patch)
treecf82ea630b2ef003f4f937104f3b0727e40971a7
parentInitial commit. (diff)
downloadeselect-vi-a1ac514c7a541d02d5363eed6bd68b8183fc479c.tar.gz
eselect-vi-a1ac514c7a541d02d5363eed6bd68b8183fc479c.tar.bz2
eselect-vi-a1ac514c7a541d02d5363eed6bd68b8183fc479c.zip
Add additional man page compressed suffixes
Just copy the list from Portage's ecompress. Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--vi.eselect.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/vi.eselect.in b/vi.eselect.in
index af51482..3d4f469 100644
--- a/vi.eselect.in
+++ b/vi.eselect.in
@@ -30,16 +30,16 @@ find_targets() {
# try to remove the vi, ex, view and man vi symlinks
remove_symlinks() {
rm -f "${EROOT}"/usr/bin/{vi,ex,view} &>/dev/null && \
- rm -f "${EROOT}"/usr/share/man/man1/{vi,ex,view}.1{,.gz,.bz2,.lzma} &>/dev/null
+ rm -f "${EROOT}"/usr/share/man/man1/{vi,ex,view}.1{,.Z,.gz,.bz2,.lzma,.lz,.lzo,.lz4,.xz,.zst} &> /dev/null
}
# set a man page symlink
set_man_symlink() {
local target="${1}" link_name="${2}" x extension
- for x in ".1" ".1.bz2" ".1.gz" ".1.lzma"; do
- if [[ -e ${EROOT}/usr/share/man/man1/${target}${x} ]]; then
- extension="${x}"
+ for x in '' .Z .gz .bz2 .lzma .lz .lzo .lz4 .xz .zst; do
+ if [[ -e ${EROOT}/usr/share/man/man1/${target}.1${x} ]]; then
+ extension=".1${x}"
break
fi
done