@@ -4,6 +4,13 @@
4# containers, ignoring insignificant formatting differences
4# containers, ignoring insignificant formatting differences
5# in the XML contents.
5# in the XML contents.
8+if [ "$UNAME" = "Darwin" ]; then
11+ FIND="find -regextype posix-extended"
9test -f "$f1" -a -f "$f2" || {
16test -f "$f1" -a -f "$f2" || {
@@ -17,7 +24,7 @@ cd "$WORKDIR"
18for x in a b; do
25for x in a b; do
19 cp -r $x tidy/
26 cp -r $x tidy/
20− find $x -regextype posix-extended -iregex '.*\.(xhtml|xml|rdf|rels)' -exec sh -c 'mkdir -p "$(dirname tidy/$1)" && tidy -q -xml -utf8 -i "$1" > "tidy/$1"' _ {} \;
27+ $FIND $x -iregex '.*\.(xhtml|xml|rdf|rels)' -exec sh -c 'mkdir -p "$(dirname tidy/$1)" && tidy -q -xml -utf8 -i "$1" > "tidy/$1"' _ {} \;