diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-03-23 17:39:28 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-03-26 13:33:31 +0200 |
commit | e85f415c54172c4617d4c0e4ddf7697abc1d52aa (patch) | |
tree | a8fd33620136a66e0de1b156e228f9972faa9750 /eclass/docs.eclass | |
parent | cvs.eclass: Quote argument of ":" command (diff) | |
download | gentoo-e85f415c54172c4617d4c0e4ddf7697abc1d52aa.tar.gz gentoo-e85f415c54172c4617d4c0e4ddf7697abc1d52aa.tar.bz2 gentoo-e85f415c54172c4617d4c0e4ddf7697abc1d52aa.zip |
docs.eclass: Quote argument of ":" command
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/docs.eclass')
-rw-r--r-- | eclass/docs.eclass | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/eclass/docs.eclass b/eclass/docs.eclass index 810b56460f3f..da598226bfc0 100644 --- a/eclass/docs.eclass +++ b/eclass/docs.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: docs.eclass @@ -210,7 +210,7 @@ python_append_deps() { sphinx_deps() { debug-print-function ${FUNCNAME} - : ${DOCS_AUTODOC:=1} + : "${DOCS_AUTODOC:=1}" deps="dev-python/sphinx[\${PYTHON_USEDEP}] ${DOCS_DEPEND}" @@ -235,8 +235,8 @@ sphinx_compile() { debug-print-function ${FUNCNAME} use doc || return - : ${DOCS_DIR:="${S}"} - : ${DOCS_OUTDIR:="${S}/_build/html/sphinx"} + : "${DOCS_DIR:="${S}"}" + : "${DOCS_OUTDIR:="${S}/_build/html/sphinx"}" [[ ${DOCS_INITIALIZE_GIT} ]] && initialize_git_repo @@ -274,7 +274,7 @@ sphinx_compile() { mkdocs_deps() { debug-print-function ${FUNCNAME} - : ${DOCS_AUTODOC:=0} + : "${DOCS_AUTODOC:=0}" deps="dev-python/mkdocs[\${PYTHON_USEDEP}] ${DOCS_DEPEND}" @@ -298,8 +298,8 @@ mkdocs_compile() { debug-print-function ${FUNCNAME} use doc || return - : ${DOCS_DIR:="${S}"} - : ${DOCS_OUTDIR:="${S}/_build/html/mkdocs"} + : "${DOCS_DIR:="${S}"}" + : "${DOCS_OUTDIR:="${S}/_build/html/mkdocs"}" [[ ${DOCS_INITIALIZE_GIT} ]] && initialize_git_repo @@ -342,9 +342,9 @@ doxygen_compile() { use doc || return # This is the default name of the config file, upstream can change it. - : ${DOCS_CONFIG_NAME:="Doxyfile"} - : ${DOCS_DIR:="${S}"} - : ${DOCS_OUTDIR:="${S}/_build/html/doxygen"} + : "${DOCS_CONFIG_NAME:="Doxyfile"}" + : "${DOCS_DIR:="${S}"}" + : "${DOCS_OUTDIR:="${S}/_build/html/doxygen"}" [[ ${DOCS_INITIALIZE_GIT} ]] && initialize_git_repo |