Renamed replace executable to replace-literal (Yurii Kudryashov noticed conflict with MySQL)

svn path=/nixpkgs/trunk/; revision=9376
This commit is contained in:
Michael Raskin 2007-09-27 14:48:09 +00:00
parent d4d6b5424d
commit 3dc3021d01
2 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,7 @@ fixCmakeFiles()
echo "Fixing cmake files" echo "Fixing cmake files"
replaceArgs="-e -f -L -T /usr /FOO" replaceArgs="-e -f -L -T /usr /FOO"
replaceArgs="${replaceArgs} -a NO_DEFAULT_PATH \"\" -a NO_SYSTEM_PATH \"\"" replaceArgs="${replaceArgs} -a NO_DEFAULT_PATH \"\" -a NO_SYSTEM_PATH \"\""
find $1 -type f -name "*.cmake" | xargs replace ${replaceArgs} find $1 -type f -name "*.cmake" | xargs replace-literal ${replaceArgs}
} }
cmakePostUnpack() cmakePostUnpack()

View File

@ -10,6 +10,8 @@ stdenv.mkDerivation {
buildInputs = []; buildInputs = [];
makeFlags = " TREE=\$(out) "; makeFlags = " TREE=\$(out) ";
postInstall = "mv \$out/bin/replace \$out/bin/replace-literal";
meta = { meta = {
description = " description = "
Replace verbatim strings. Sed is not fit to do it. Replace is. Replace verbatim strings. Sed is not fit to do it. Replace is.