t/defaults-nested/clean fails on MacOS X.

It seems on OSX find behaves differently (probably from linux):

jtang@exia:~/develop/redo $ make clean
./redo clean
redo  clean
redo    t/clean
redo      t/example/clean
redo      t/curse/clean
redo      t/deps/clean
redo        t/deps/basic/clean
redo        t/deps/dirtest/clean
redo      t/space dir/clean
redo      t/stamp/clean
redo      t/defaults-flat/clean
redo      t/defaults-nested/clean
find: illegal option -- n
find: illegal option -- a
find: illegal option -- m
find: illegal option -- e
find: *~: No such file or directory
redo      t/defaults-nested/clean: exit code 1
redo    t/clean: exit code 1
redo  clean: exit code 1
make: *** [clean] Error 1

This fixes it for me.
This commit is contained in:
Jimmy 2011-01-17 23:22:09 -08:00 committed by Avery Pennarun
commit 4a296d676c

View file

@ -1,5 +1,5 @@
exec >&2
find -name '*~' -exec rm -f {} \;
find . -name '*~' -exec rm -f {} \;
rm -f a/b/file a/b/file.x.y.z a/b/file.y.z a/b/file.z \
a/d/file a/d/file.x.y.z a/d/file.y.z a/d/file.z \
a/file a/file.x.y.z a/file.y.z a/file.z \