diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/tinderbox/tinderbox.1 | 13 | ||||
-rw-r--r-- | tools/tools/tinderbox/tinderbox.pl | 11 |
2 files changed, 5 insertions, 19 deletions
diff --git a/tools/tools/tinderbox/tinderbox.1 b/tools/tools/tinderbox/tinderbox.1 index fd33ad0..28a3b21 100644 --- a/tools/tools/tinderbox/tinderbox.1 +++ b/tools/tools/tinderbox/tinderbox.1 @@ -91,18 +91,7 @@ The maximum number of paralell jobs, as specified to using the .Fl j option. -The default is to use the -.Fl B -option instead, forbidding -.Xr make 1 -to perform more than one task at a time. -Specifying -.Va 0 -or -.Va 1 -to the -.Fl -jobs -option is equivalent to leaving it unspecified. +The default is 1. .It Fl l Ar FILE , Fl -logfile Ns = Ns Ar FILE The name of a file to which the output and error messages produced by the build should be written. diff --git a/tools/tools/tinderbox/tinderbox.pl b/tools/tools/tinderbox/tinderbox.pl index 5db0707..fd42b3b 100644 --- a/tools/tools/tinderbox/tinderbox.pl +++ b/tools/tools/tinderbox/tinderbox.pl @@ -207,9 +207,7 @@ sub spawn($@) { sub make($) { my $target = shift; - return spawn('/usr/bin/make', - ($jobs > 1) ? "-j$jobs" : "-B", - $target); + return spawn('/usr/bin/make', "-Pj$jobs", $target); } sub logstage($) { @@ -284,7 +282,7 @@ MAIN:{ $machine = `/usr/bin/uname -m`; chomp($machine); $branch = "CURRENT"; - $jobs = 0; + $jobs = 1; $repository = "/home/ncvs"; $sandbox = "/tmp/tinderbox"; @@ -304,7 +302,7 @@ MAIN:{ "v|verbose+" => \$verbose, ) or usage(); - if ($jobs < 0) { + if ($jobs < 1) { error("invalid number of jobs"); } if ($branch !~ m|^(\w+)$|) { @@ -466,8 +464,7 @@ MAIN:{ if $branch ne 'CURRENT'; $ENV{'CVSCMDARGS'} = "-D$date" if defined($date); - $ENV{'WORLD_FLAGS'} = $ENV{'KERNEL_FLAGS'} = - ($jobs > 1) ? "-j$jobs" : "-B"; + $ENV{'WORLD_FLAGS'} = $ENV{'KERNEL_FLAGS'} = "-Pj$jobs"; if ($patch) { $ENV{'LOCAL_PATCHES'} = $patch; $ENV{'PATCH_FLAGS'} = "-fs"; |