summaryrefslogtreecommitdiff
path: root/infrastructure/makeparcels.pl.in
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-10-08 20:42:52 +0000
committerChris Wilson <chris+github@qwirx.com>2008-10-08 20:42:52 +0000
commit177146a9191c01ee0108cfc8974a9fc658a8fa17 (patch)
treecddbc5d5d7f61121320a1cf38da9ecad5c02c41c /infrastructure/makeparcels.pl.in
parentd6195c39091bfe7d0e7ff3b1531b401284c22c8f (diff)
Determine whether to use find | xargs at build time, not at run time,
as Solaris/SunOS doesn't have "uname -o".
Diffstat (limited to 'infrastructure/makeparcels.pl.in')
-rwxr-xr-xinfrastructure/makeparcels.pl.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/infrastructure/makeparcels.pl.in b/infrastructure/makeparcels.pl.in
index 188832b4..bc080c1b 100755
--- a/infrastructure/makeparcels.pl.in
+++ b/infrastructure/makeparcels.pl.in
@@ -101,7 +101,16 @@ for my $parcel (@parcels)
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";