+--configure
[nethome.git] / bin / hammock
index fdf25c8..306d653 100755 (executable)
@@ -35,6 +35,7 @@ my $component;
 my $srcrpm;
 my @file;
 my @target;
+my $configure;
 # FIXME: Connect make paralellization to the children.
 my $distrojobs;
 die if !GetOptions(
@@ -52,6 +53,7 @@ die if !GetOptions(
     "file=s{,}"=>\@file,
     "target=s{,}"=>\@target,
   "D|distrojobs=s"=>\$distrojobs,
+    "configure=s"=>\$configure,
 );
 $component and ($component=~m{^(?:(?:fedora|rhel)(?:gdb|binutils|glibc)|gdbcvs|binutilscvs|archer-.*|/home/.*)$} or die "-c|--component required to be: fedoragdb|rhelgdb|fedorabinutils|rhelbinutils|fedoraglibc|rhelglibc|gdbcvs|binutilscvs|archer-*|/home/*");
 $component and $component=~m{^/home/} and (-f "$component/gdb/gdbtypes.c" or die "$component/gdb/gdbtypes.c not found");
@@ -177,6 +179,7 @@ my %dump=(
   "component"=>$component,
   "srcrpm"=>$srcrpm,
   "file"=>join("\n",@file),
+  "configure"=>$configure,
 );
 while (my($name,$val)=each(%dump)) {
   writefile "$dir/$name","$val\n" if $val;
@@ -348,6 +351,7 @@ while (@distrouse || keys(%child)) {
 
       my $errs1="errs1";
       $errs1.=" --target=$target" if $target;
+      $errs1.=" $configure" if $configure;
 
       if ($component eq "binutilscvs") {
        mockrun "cd $baretestsuite; $errs1; errs2; ulimit -c unlimited; orphanripper make -k check || :; mkdir $out; ".q{for file in {gas/testsuite/gas,ld/ld,binutils/binutils}.{sum,log};do ln $file}." $out/binutils-$distro-".q{$(basename $file) || :; done;};