[Box Backup-commit] COMMIT r2323 - box/trunk/infrastructure
boxbackup-dev@boxbackup.org
boxbackup-dev@boxbackup.org
Sat, 4 Oct 2008 20:28:15 +0100 (BST)
Author: chris
Date: 2008-10-04 20:28:15 +0100 (Sat, 04 Oct 2008)
New Revision: 2323
Modified:
box/trunk/infrastructure/makeparcels.pl.in
Log:
Use xargs to delete files on Cygwin, as it's much faster than find -exec.
Modified: box/trunk/infrastructure/makeparcels.pl.in
===================================================================
--- box/trunk/infrastructure/makeparcels.pl.in 2008-10-04 19:27:42 UTC (rev 2322)
+++ box/trunk/infrastructure/makeparcels.pl.in 2008-10-04 19:28:15 UTC (rev 2323)
@@ -101,7 +101,7 @@
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";