From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EC43A158020 for ; Tue, 22 Nov 2022 00:31:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0DCD1E0809; Tue, 22 Nov 2022 00:31:18 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EC85FE0809 for ; Tue, 22 Nov 2022 00:31:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 00318341005 for ; Tue, 22 Nov 2022 00:31:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9448B624 for ; Tue, 22 Nov 2022 00:31:15 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1669077057.a1ac514c7a541d02d5363eed6bd68b8183fc479c.sam@gentoo> Subject: [gentoo-commits] proj/eselect-vi:master commit in: / X-VCS-Repository: proj/eselect-vi X-VCS-Files: vi.eselect.in X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a1ac514c7a541d02d5363eed6bd68b8183fc479c X-VCS-Branch: master Date: Tue, 22 Nov 2022 00:31:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0ae49820-6013-4fbf-a110-580b1116867c X-Archives-Hash: 6628b7dbcfa3bd1ee70deff592273ed4 commit: a1ac514c7a541d02d5363eed6bd68b8183fc479c Author: Sam James gentoo org> AuthorDate: Tue Nov 22 00:27:02 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Nov 22 00:30:57 2022 +0000 URL: https://gitweb.gentoo.org/proj/eselect-vi.git/commit/?id=a1ac514c Add additional man page compressed suffixes Just copy the list from Portage's ecompress. Signed-off-by: Sam James gentoo.org> vi.eselect.in | 8 ++++---- 1 file 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