install => 1,
oneshot => 0,
configure => 0,
+ jobs => 1,
'test-archives' => 0,
);
test-archives=i
patch!
oneshot
+ jobs=i
)) or pod2usage(2);
my %current;
+my $job_string = "";
+$job_string = "-j$opt{jobs}" if $opt{jobs} != 1;
+
if ($opt{patch} || $opt{oneshot}) {
@{$opt{perl}} == 1 or die "Exactly one --perl must be given with --patch or --oneshot\n";
my $perl = $opt{perl}[0];
if (-f "x2p/makefile") {
run_or_die("sed -i -e '/^.*<builtin>/d' -e '/^.*<built-in>/d' -e '/^.*<command line>/d' -e '/^.*<command-line>/d' makefile x2p/makefile");
}
- run_or_die("make all");
- run("make test") if $opt{test};
+ run_or_die("make $job_string all");
+ run("TEST_JOBS=$opt{jobs} make $job_string test") if $opt{test};
if ($opt{install}) {
- run_or_die("make install");
+ run_or_die("make $job_string install");
}
else {
print "\n*** NOT INSTALLING PERL ***\n\n";
directory (extra arguments are passed to
Configure)
+ -j N Build and test with N parallel jobs, default 1.
+
options tagged with [MULTI] can be given multiple times
options tagged with [EXPAND] expand the following items