[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parallel Cons Issue
From: |
Wayne Scott |
Subject: |
Re: Parallel Cons Issue |
Date: |
Thu, 06 Sep 2001 15:48:32 -0500 (EST) |
From: "Nolish, Kevin" <address@hidden>
> my @cmds = $self->getcoms($env, $tgt); # pcons
> if ($param::max_jobs>1) { # pcons
> for( $i = 0; $i < @cmds; $i++ ) { #pcons -kn
> $cmds[$i] = "( " . $cmds[$i] . " )"; #pcons -kn
> } #pcons -kn
> @cmds = join(" && ", @cmds) ; # pcons
> }
This is cleaner.... but untested.
my @cmds = $self->getcoms($env, $tgt); # pcons
if ($param::max_jobs>1) { # pcons
@cmds = (join(" && ", map {"( $_ )"} @cmds)) ; # pcons
}
-Wayne