diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-10-04 19:28:15 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-10-04 19:28:15 +0000 |
commit | 8a62430b08d8ce2d3cce4bc4296085b4d7ae51d9 (patch) | |
tree | 6d47f45c4faff7440f47c8d1c7baf531000f6695 /infrastructure/makeparcels.pl.in | |
parent | e24821cf9815382494df3d86845749199926fca6 (diff) |
Use xargs to delete files on Cygwin, as it's much faster than find -exec.
Diffstat (limited to 'infrastructure/makeparcels.pl.in')
-rwxr-xr-x | infrastructure/makeparcels.pl.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/infrastructure/makeparcels.pl.in b/infrastructure/makeparcels.pl.in index 68b50198..6a355bbf 100755 --- a/infrastructure/makeparcels.pl.in +++ b/infrastructure/makeparcels.pl.in @@ -101,7 +101,7 @@ for my $parcel (@parcels) print MAKE "\trm -rf ",parcel_dir($parcel),"\n"; print MAKE "\trm -f ",parcel_target($parcel),"\n"; } -print MAKE "\tfind release debug -type f -exec rm -f {} \\;\n"; +print MAKE "\tif [ `uname -o` = 'Cygwin' ]; then find release debug -type f | xargs -r rm -f; else find release debug -type f -exec rm -f {} \\;; fi\n"; print MAKE "\n"; print MAKE "test:\trelease/common/test\n\nrelease/common/test:\n\t./runtest.pl ALL release\n\n"; |