diff options
author | 2024-05-02 19:45:28 +0200 | |
---|---|---|
committer | 2024-05-02 19:45:28 +0200 | |
commit | b40da5fa4427360df77633ea7ea1890057235c92 (patch) | |
tree | 8b657773b4093b095c7e42122fe6c9710c94fda1 | |
parent | texlive-module.eclass: use ebegin and eend (diff) | |
download | tex-overlay-b40da5fa4427360df77633ea7ea1890057235c92.tar.gz tex-overlay-b40da5fa4427360df77633ea7ea1890057235c92.tar.bz2 tex-overlay-b40da5fa4427360df77633ea7ea1890057235c92.zip |
texlive-module.eclass: sync with ::gentoo
Signed-off-by: Florian Schmaus <flow@gentoo.org>
-rw-r--r-- | eclass/texlive-module.eclass | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass index b02b2b8..da33e25 100644 --- a/eclass/texlive-module.eclass +++ b/eclass/texlive-module.eclass @@ -523,19 +523,23 @@ texlive-module_src_install() { xetex.1 xml2pmx.1 ) + local f local grep_expressions=() + # Transform texlive_core_man_pages into grep expressions + # that will be used to filter out any man page that is + # already installed by app-text/texlive-core. for f in "${texlive_core_man_pages[@]}"; do # Ensure that all dots are escaped so that they are - # matched lilterarily. Also wrap the file in '/' and '$' + # matched literarily. Also wrap the file in '/' and '$' # within the expression. - grep_expressions+=(-e "/${f//./\\.}$") + grep_expressions+=(-e "/${f//./\\.}\$") done ebegin "Installing man pages" find texmf-dist/doc/man -type f -name '*.[0-9n]' -print | grep -v "${grep_expressions[@]}" | xargs -d '\n' --no-run-if-empty doman - nonfatal assert -n + [[ "${PIPESTATUS[*]}" =~ ^0(" 0")*$ ]] eend $? || die "error installing man pages" # Delete all man pages under texmf-dist/doc/man |