git: fixed impure path to perl in git-am and git-submodule

svn path=/nixpkgs/trunk/; revision=27859
This commit is contained in:
Peter Simons 2011-07-20 22:56:31 +00:00
parent 62eab9e44a
commit efe5ab73b1

View File

@ -53,6 +53,12 @@ stdenv.mkDerivation rec {
substituteInPlace $out/libexec/git-core/git-sh-setup \
--replace ' grep' ' ${gnugrep}/bin/grep' \
--replace ' egrep' ' ${gnugrep}/bin/egrep'
# Fix references to the perl binary. Note that the tab character
# in the patterns is important.
sed -i -e 's| perl -ne| ${perl}/bin/perl -ne|g' \
-e 's| perl -e| ${perl}/bin/perl -e|g' \
$out/libexec/git-core/{git-am,git-submodule}
''
+ (if svnSupport then