summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers/dodoc
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ebuild-helpers/dodoc')
-rwxr-xr-xbin/ebuild-helpers/dodoc4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/dodoc b/bin/ebuild-helpers/dodoc
index 65713db1a..37bbc79d0 100755
--- a/bin/ebuild-helpers/dodoc
+++ b/bin/ebuild-helpers/dodoc
@@ -9,7 +9,9 @@ if [ $# -lt 1 ] ; then
exit 1
fi
-dir="${D}usr/share/doc/${PF}/${_E_DOCDESTTREE_}"
+case "$EAPI" in 0|1|2) ED=${D} ;; esac
+
+dir="${ED}usr/share/doc/${PF}/${_E_DOCDESTTREE_}"
if [ ! -d "${dir}" ] ; then
install -d "${dir}"
fi