From b745126a04c126acc695e8abb6372c1890b03f07 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 11 Apr 2007 12:26:21 +0100 Subject: [PATCH] Use find | xargs to overcome shell command line limit. Once again we have hit the command line limit with the sheer volume of generated test output. So replace the glob with a find which has the additional advantage of only needing to walk the tree once to generate the file lists - this begins to be noticeable with such large directories. --- test/Makefile.am | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/test/Makefile.am b/test/Makefile.am index 74ead621e..d43f77402 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -523,14 +523,16 @@ CLEANFILES = \ $(EXTRA_LTLIBRARIES) \ $(EXTRA_PROGRAMS) -# some systems cannot handle all of our clean files together +# most systems cannot handle all of our clean files together clean-local: - -$(RM) *.ps - -$(RM) *.pdf - -$(RM) *.svg - -$(RM) *-out.png - -$(RM) *-diff.png - -$(RM) *.log + -find . \ + \( -name '*.ps' -print0 \) , \ + \( -name '*.pdf' -print0 \) , \ + \( -name '*.svg' -print0 \) , \ + \( -name '*-out.png' -print0 \) , \ + \( -name '*-diff.png' -print0 \) , \ + \( -name '*.log' -print0 \) \ + | xargs -0 rm -f # Check tests under valgrind # Saves log to valgrind-log