a bash version of it to isolated-functions.sh.
svn path=/main/trunk/; revision=9100
;;
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)
bad = create_color_func("BAD")
ostype=os.uname()[0]
-
userland = None
+if ostype == "DragonFly" or ostype.endswith("BSD"):
+ userland = "BSD"
+else:
+ userland = "GNU"
+
lchown = getattr(os, "lchown", None)
-os.environ.setdefault("XARGS", "xargs")
-if ostype == "Linux" or \
- ostype.lower().startswith("gnu") or \
- ostype.lower().endswith("gnu"):
- userland="GNU"
-elif ostype == "Darwin":
- userland="Darwin"
-elif ostype.endswith("BSD") or ostype =="DragonFly":
- userland="BSD"
if not lchown:
try: