summaryrefslogtreecommitdiff
path: root/infrastructure
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-10-04 19:28:15 +0000
committerChris Wilson <chris+github@qwirx.com>2008-10-04 19:28:15 +0000
commit8a62430b08d8ce2d3cce4bc4296085b4d7ae51d9 (patch)
tree6d47f45c4faff7440f47c8d1c7baf531000f6695 /infrastructure
parente24821cf9815382494df3d86845749199926fca6 (diff)
Use xargs to delete files on Cygwin, as it's much faster than find -exec.
Diffstat (limited to 'infrastructure')
-rwxr-xr-xinfrastructure/makeparcels.pl.in2
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";