aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bash/helpers/common/fowners')
-rwxr-xr-xbash/helpers/common/fowners9
1 files changed, 9 insertions, 0 deletions
diff --git a/bash/helpers/common/fowners b/bash/helpers/common/fowners
new file mode 100755
index 000000000..011620369
--- /dev/null
+++ b/bash/helpers/common/fowners
@@ -0,0 +1,9 @@
+#!/usr/bin/env pkgcore-ebuild-helper
+# Copyright: 2011 Brian Harring <ferringb@gmail.com>
+# License: GPL2/BSD 3 clause
+
+# at least two args are required- the owner/group chunk, and the target
+check_args 2 -
+
+# pathway must be absolute.
+check_command chown "${@/#\//${ED}/}"