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.
6 lines
219 B
Text
6 lines
219 B
Text
exec >&2
|
|
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 \
|
|
file.x.y.z file.z file
|