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

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

case "$EAPI" in 0|1|2) ED=${D} ;; esac

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