aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2015-11-23 16:59:37 -0800
committerZac Medico <zmedico@gentoo.org>2015-11-23 17:05:54 -0800
commitdddeca6e4409e2a8a0dedc907d208ce352a48b72 (patch)
treeebd07449f1a84404c0577990175fcc7c340d319c
parentportage.repository.config.RepoConfigLoader._parse(): Delete unused portdir pa... (diff)
downloadportage-dddeca6e.tar.gz
portage-dddeca6e.tar.bz2
portage-dddeca6e.zip
einstalldocs: use lazy docinto calls (bug 566654)
This avoids unnecessary creation of an empty documentation directory. X-Gentoo-Bug: 566654 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=566654
-rw-r--r--bin/phase-helpers.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index f42f805e1..80f594616 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -954,26 +954,26 @@ fi
if ___eapi_has_einstalldocs; then
einstalldocs() {
(
- docinto .
if ! declare -p DOCS &>/dev/null ; then
local d
for d in README* ChangeLog AUTHORS NEWS TODO CHANGES \
THANKS BUGS FAQ CREDITS CHANGELOG ; do
- [[ -s ${d} ]] && dodoc "${d}"
+ [[ -s ${d} ]] && docinto / && dodoc "${d}"
done
elif [[ $(declare -p DOCS) == "declare -a"* ]] ; then
- [[ ${DOCS[@]} ]] && dodoc -r "${DOCS[@]}"
+ [[ ${DOCS[@]} ]] && docinto / && dodoc -r "${DOCS[@]}"
else
- [[ ${DOCS} ]] && dodoc -r ${DOCS}
+ [[ ${DOCS} ]] && docinto / && dodoc -r ${DOCS}
fi
)
(
- docinto html
if [[ $(declare -p HTML_DOCS 2>/dev/null) == "declare -a"* ]] ; then
- [[ ${HTML_DOCS[@]} ]] && dodoc -r "${HTML_DOCS[@]}"
+ [[ ${HTML_DOCS[@]} ]] && \
+ docinto html && dodoc -r "${HTML_DOCS[@]}"
else
- [[ ${HTML_DOCS} ]] && dodoc -r ${HTML_DOCS}
+ [[ ${HTML_DOCS} ]] && \
+ docinto html && dodoc -r ${HTML_DOCS}
fi
)
}