Signed-off-by: Rob Browning <rlb@defaultvalue.org>
http://cygwin.com/ml/cygwin/2007-06/msg00436.html
+Notes on OS X
+-------------
+
+ - There is no support for ACLs. If/when some entrprising person
+ fixes this, adjust t/compare-trees.
+
+
How it works
============
xattr = None
posix1e = None
-if not sys.platform.startswith('cygwin'):
+if not (sys.platform.startswith('cygwin') or sys.platform.startswith('darwin')):
try:
import posix1e
except ImportError:
rsync_opts="-niaH$verify_content --delete"
if rsync --version | grep -q xattrs; then
- if [[ $(uname) =~ CYGWIN ]]; then
- # bup doesn't support ACLs on Cygwin yet.
- rsync_opts="$rsync_opts -X"
- else
- rsync_opts="$rsync_opts -AX"
- fi
+ case $OSTYPE in
+ cygwin|darwin)
+ # bup doesn't support ACLs here yet.
+ rsync_opts="$rsync_opts -X"
+ ;;
+ *)
+ rsync_opts="$rsync_opts -AX"
+ ;;
+ esac
else
echo "Not comparing xattrs/acls (unsupported by available rsync)." 1>&2
fi