summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers/dodoc
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-09-01 15:42:45 -0700
committerZac Medico <zmedico@gentoo.org>2012-09-01 15:42:45 -0700
commitca755a56b628c8296630c3e435425b14d3b8bf10 (patch)
tree09f6899bc8d416a646b04133f2edfd98144d67ed /bin/ebuild-helpers/dodoc
parentbb3094fb926910594f26ac3cf246d9aa9f9444d9 (diff)
downloadportage-ca755a56b628c8296630c3e435425b14d3b8bf10.tar.gz
portage-ca755a56b628c8296630c3e435425b14d3b8bf10.tar.bz2
portage-ca755a56b628c8296630c3e435425b14d3b8bf10.zip
Eliminate bin/ebuild-helpers/4 directory.
Instead, just use conditionals where appropriate inside bin/ebuild-helpers/* scripts.
Diffstat (limited to 'bin/ebuild-helpers/dodoc')
-rwxr-xr-xbin/ebuild-helpers/dodoc13
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/dodoc b/bin/ebuild-helpers/dodoc
index 1f333a615..d6ce67933 100755
--- a/bin/ebuild-helpers/dodoc
+++ b/bin/ebuild-helpers/dodoc
@@ -1,7 +1,18 @@
#!/bin/bash
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+case "${EAPI}" in
+ 0|1|2|3)
+ ;;
+ *)
+ exec \
+ env \
+ __PORTAGE_HELPER="dodoc" \
+ doins "$@"
+ ;;
+esac
+
source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
if [ $# -lt 1 ] ; then