From: jkratoch <> Date: Thu, 16 Jul 2009 18:47:11 +0000 (+0000) Subject: Adjust patch -p0 for binutils. X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=7e7ad5e98e95b3dcfb2a9aef79ca9182220ba506 Adjust patch -p0 for binutils. --- diff --git a/bin/hammock b/bin/hammock index be33ac0..6a1c07b 100755 --- a/bin/hammock +++ b/bin/hammock @@ -292,7 +292,7 @@ for my $distro (@distrouse) { 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";