diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2003-12-12 12:03:59 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2003-12-12 12:03:59 +0000 |
commit | 3b64ed3a59de822c9b7acda0782ea536c0ef248f (patch) | |
tree | 3eca466f63dd744b7649aeaf3895a2ab6f9b8b2e /tools | |
parent | a61f15043cb6d4574e5c0d1ac0f0157aaaaa7614 (diff) | |
download | src-test2-3b64ed3a59de822c9b7acda0782ea536c0ef248f.tar.gz src-test2-3b64ed3a59de822c9b7acda0782ea536c0ef248f.zip |
Notes
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/tinderbox/tinderbox.pl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/tools/tinderbox/tinderbox.pl b/tools/tools/tinderbox/tinderbox.pl index f0aaf868768c..5db070747dc5 100644 --- a/tools/tools/tinderbox/tinderbox.pl +++ b/tools/tools/tinderbox/tinderbox.pl @@ -207,7 +207,9 @@ sub spawn($@) { sub make($) { my $target = shift; - return spawn('/usr/bin/make', "-j$jobs", $target); + return spawn('/usr/bin/make', + ($jobs > 1) ? "-j$jobs" : "-B", + $target); } sub logstage($) { @@ -282,7 +284,7 @@ MAIN:{ $machine = `/usr/bin/uname -m`; chomp($machine); $branch = "CURRENT"; - $jobs = 1; + $jobs = 0; $repository = "/home/ncvs"; $sandbox = "/tmp/tinderbox"; @@ -302,7 +304,7 @@ MAIN:{ "v|verbose+" => \$verbose, ) or usage(); - if ($jobs < 1) { + if ($jobs < 0) { error("invalid number of jobs"); } if ($branch !~ m|^(\w+)$|) { @@ -464,7 +466,8 @@ MAIN:{ if $branch ne 'CURRENT'; $ENV{'CVSCMDARGS'} = "-D$date" if defined($date); - $ENV{'WORLD_FLAGS'} = $ENV{'KERNEL_FLAGS'} = "-j$jobs"; + $ENV{'WORLD_FLAGS'} = $ENV{'KERNEL_FLAGS'} = + ($jobs > 1) ? "-j$jobs" : "-B"; if ($patch) { $ENV{'LOCAL_PATCHES'} = $patch; $ENV{'PATCH_FLAGS'} = "-fs"; |