summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers/dodir
blob: e03ba9a58085e954e2f27c1c94d327b179961ba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh

if ! ___eapi_has_prefix_variables; then
	ED=${D}
fi

install -d ${DIROPTIONS} "${@/#/${ED}/}"
ret=$?
[[ $ret -ne 0 ]] && __helpers_die "${0##*/} failed"
exit $ret