summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-29 12:07:56 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-29 12:07:56 +0000
commitb7a57530eebde2fdbce834ca1731cbf0c7f4ee74 (patch)
treed0c6875cfcd597885f295df7d1826939649ef647 /bin/isolated-functions.sh
parentRemove redundant lchown() compatibility code since the (diff)
downloadportage-multirepo-b7a57530eebde2fdbce834ca1731cbf0c7f4ee74.tar.gz
portage-multirepo-b7a57530eebde2fdbce834ca1731cbf0c7f4ee74.tar.bz2
portage-multirepo-b7a57530eebde2fdbce834ca1731cbf0c7f4ee74.zip
Simplify the userland detection code in portage.data and add
a bash version of it to isolated-functions.sh. svn path=/main/trunk/; revision=9100
Diffstat (limited to 'bin/isolated-functions.sh')
-rwxr-xr-xbin/isolated-functions.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 3290654a..6feb48dd 100755
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -375,6 +375,17 @@ case "${NOCOLOR:-false}" in
;;
esac
+if [[ -z ${USERLAND} ]] ; then
+ case $(uname -s) in
+ *BSD|DragonFly)
+ export USERLAND="BSD"
+ ;;
+ *)
+ export USERLAND="GNU"
+ ;;
+ esac
+fi
+
if [[ -z ${XARGS} ]] ; then
case ${USERLAND} in
BSD|Darwin)