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

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

# we can't prefix all arguments because
# chown takes random options
slash="/"
chown "${@/#${slash}/${D}${slash}}"
ret=$?
[[ $ret -ne 0 ]] && helpers_die "$0 failed"
exit $ret