diff options
author | Florian Schmaus <flow@gentoo.org> | 2024-12-13 10:59:08 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2024-12-13 11:02:33 +0100 |
commit | 589efbb6dd81a44451e2ec6c8e1b52991d29b9d7 (patch) | |
tree | d281f48880c64f001f082615e435677927f1e946 /eclass | |
parent | sci-electronics/kicad: [QA] Drop unnecessary SRC_URI arrow (diff) | |
download | gentoo-589efbb6dd81a44451e2ec6c8e1b52991d29b9d7.tar.gz gentoo-589efbb6dd81a44451e2ec6c8e1b52991d29b9d7.tar.bz2 gentoo-589efbb6dd81a44451e2ec6c8e1b52991d29b9d7.zip |
texlive-module.eclass: change _sgrep to _tl_sgrep
Bash functions are always global, hence put the "local" function under a
proper '_tl' namespace. Thanks to ulm for pointing this out.
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/texlive-module.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass index ebd65e3dd0d8..15dcdea5df20 100644 --- a/eclass/texlive-module.eclass +++ b/eclass/texlive-module.eclass @@ -539,10 +539,10 @@ texlive-module_src_install() { local status # "success-status aware grep", returning exit status 0 instead of 1. - _sgrep() { grep "$@"; return "$(( $? <= 1 ? 0 : $? ))"; } + _tl_sgrep() { grep "$@"; return "$(( $? <= 1 ? 0 : $? ))"; } ebegin "Installing man pages" find texmf-dist/doc/man -type f -name '*.[0-9n]' -print | - _sgrep -v "${grep_expressions[@]}" | + _tl_sgrep -v "${grep_expressions[@]}" | xargs -d '\n' --no-run-if-empty nonfatal doman status=$(pipestatus -v) eend $? || die "error installing man pages (PIPESTATUS: ${status})" |