• [gentoo-dev] [PATCH v3 1/2] latex-package.eclass: Properly quote variab

    From =?UTF-8?q?Ulrich=20M=C3=BCller?=@21:1/5 to All on Wed Apr 13 15:20:01 2022
    Bug: https://bugs.gentoo.org/379571
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>
    ---
    eclass/latex-package.eclass | 40 +++++++++++++++++++------------------
    1 file changed, 21 insertions(+), 19 deletions(-)

    diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass
    index 359b5177bb37..bee04b607de1 100644
    --- a/eclass/latex-package.eclass
    +++ b/eclass/latex-package.eclass
    @@ -1,4 +1,4 @@
    -# Copyright 1999-2020 Gentoo Authors
    +# Copyright 1999-2022 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: latex-package.eclass
    @@ -103,23 +103,24 @@ latex-package_src_doinstall() {
    case ${1} in
    "sh")
    while IFS= read -r -d '' i; do
    - dobin ${i}
    + dobin "${i}"
    done < <(find -maxdepth 1 -type f -name "*.${1}" -print0)
    ;;

    "sty" | "cls" | "fd" | "clo" | "def" | "cfg")
    while IFS= read -r -d '' i; do
    - insinto ${TEXMF}/tex/latex/${PN}
    - doins ${i}
    + insinto "${TEXMF}/tex/latex/${PN}"
    + doins "${i}"
    done < <(find -maxdepth 1 -type f -name "*.${1}" -print0)