[Box Backup-commit] COMMIT r2342 - box/trunk/infrastructure

boxbackup-dev at boxbackup.org boxbackup-dev at boxbackup.org
Wed Oct 8 21:42:53 BST 2008


Author: chris
Date: 2008-10-08 21:42:52 +0100 (Wed, 08 Oct 2008)
New Revision: 2342

Modified:
   box/trunk/infrastructure/makeparcels.pl.in
Log:
Determine whether to use find | xargs at build time, not at run time,
as Solaris/SunOS doesn't have "uname -o".


Modified: box/trunk/infrastructure/makeparcels.pl.in
===================================================================
--- box/trunk/infrastructure/makeparcels.pl.in	2008-10-08 20:24:55 UTC (rev 2341)
+++ box/trunk/infrastructure/makeparcels.pl.in	2008-10-08 20:42:52 UTC (rev 2342)
@@ -101,7 +101,16 @@
 	print MAKE "\trm -rf ", BoxPlatform::parcel_dir($parcel),    "\n";
 	print MAKE "\trm -f ",  BoxPlatform::parcel_target($parcel), "\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";
+
+if ($build_os eq 'CYGWIN')
+{
+	print MAKE "\tfind release debug -type f | xargs -r rm -f\n";
+}
+else
+{
+	print MAKE "\tfind release debug -type f -exec rm -f {} \\;\n";
+}
+
 print MAKE "\n";
 
 print MAKE "test:\trelease/common/test\n\nrelease/common/test:\n\t./runtest.pl ALL release\n\n";




More information about the Boxbackup-commit mailing list