- # (The \s+ is important, \s won't work because find would get null
- # parameters). Note that you _don't_ quote wildcards used by find
- # in here.
- doit(split(/\s+/,"find . -type f -a
- ( -name #*# -o -name .*~ -o -name *~ -o -name DEADJOE
- -o -name *.orig -o -name *.rej -o -name *.bak
- -o -name .*.orig -o -name .*.rej -o -name .SUMS
- -o -name TAGS -o -name core -o ( -path */.deps/* -a -name *.P )
- ) $find_options -exec rm -f {} ;"));
-
- # Stupid autoconf cache directory.
- doit("rm", "-rf", "autom4te.cache")
- unless excludefile("autom4te.cache");
+ complex_doit("find . $find_options \\( \\( -type f -a \\
+ \\( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \\
+ -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \\
+ -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \\
+ -o -name TAGS -o \\( -path '*/.deps/*' -a -name '*.P' \\) \\
+ \\) -exec rm -f {} \\; \\) -o \\
+ \\( -type d -a -name autom4te.cache -prune -exec rm -rf {} \\; \\) \\)");