since they seem to be switching commands to gnu anyway.
svn path=/main/trunk/; revision=9118
local utc_time_in_secs="$1"
local part="$2"
- if [[ ${USERLAND} == BSD ]] || \
- [[ ${USERLAND} == Darwin ]] ; then
+ if [[ ${USERLAND} == BSD ]] || ; then
date -r ${utc_time_in_secs} -u +"${part}"
else
date -d @${utc_time_in_secs} -u +"${part}"
my_input=$(read_int)
case ${my_input} in
1) echo "Replacing ${ofile} with ${mfile}"
- if [[ ${USERLAND} == BSD ]] || \
- [[ ${USERLAND} == Darwin ]] ; then
+ if [[ ${USERLAND} == BSD ]] ; then
chown "$(stat -f %Su:%Sg "${ofile}")" "${mfile}"
chmod $(stat -f %Mp%Lp "${ofile}") "${mfile}"
else
*BSD|DragonFly)
export USERLAND="BSD"
;;
- Darwin)
- export USERLAND="Darwin"
- ;;
*)
export USERLAND="GNU"
;;
if [[ -z ${XARGS} ]] ; then
case ${USERLAND} in
- BSD|Darwin)
+ BSD)
export XARGS="xargs"
;;
*)
userland = None
if ostype == "DragonFly" or ostype.endswith("BSD"):
userland = "BSD"
-elif ostype == "Darwin":
- userland = "Darwin"
else:
userland = "GNU"
lchown = getattr(os, "lchown", None)
if not lchown:
- if userland == "Darwin":
+ if ostype == "Darwin":
def lchown(*pos_args, **key_args):
pass
else: