Adjust patch -p0 for binutils.
authorjkratoch <>
Thu, 16 Jul 2009 18:47:11 +0000 (18:47 +0000)
committerjkratoch <>
Thu, 16 Jul 2009 18:47:11 +0000 (18:47 +0000)
bin/hammock

index be33ac0..6a1c07b 100755 (executable)
@@ -292,7 +292,7 @@ for my $distro (@distrouse) {
        my $R=$1;
        my $fileabs=$file;
        $fileabs=$ENV{"PWD"}."/$fileabs" if $fileabs!~m{^/};
        my $R=$1;
        my $fileabs=$file;
        $fileabs=$ENV{"PWD"}."/$fileabs" if $fileabs!~m{^/};
-       spawn "cd $baretestsuite; patch -${R}p1 <$fileabs";
+       spawn "cd $baretestsuite; patch -${R}p".($component=~/binutils/ ? "0" : "1")." <$fileabs";
       } else {
        -f $target or $file=~m{/testsuite/} or die "File $file does not exist at $target";
        spawn "rm -f $target; cp -p $file $target";
       } else {
        -f $target or $file=~m{/testsuite/} or die "File $file does not exist at $target";
        spawn "rm -f $target; cp -p $file $target";