Updated fixCmakeFiles to handle file paths that contain whitespace.

svn path=/nixpkgs/trunk/; revision=15113
This commit is contained in:
Peter Simons 2009-04-17 13:48:11 +00:00
parent 5bed8bd9e1
commit 2796d3a185

View File

@ -11,13 +11,13 @@ fixCmakeFiles()
echo "fixing cmake files"
replaceArgs="-e -f -L -T /usr /FOO"
replaceArgs="$replaceArgs -a NO_DEFAULT_PATH \"\" -a NO_SYSTEM_PATH \"\""
find $1 -type f -name "*.cmake" | xargs replace-literal ${replaceArgs}
find $1 -type f -name "*.cmake" -print0 | xargs -0 replace-literal ${replaceArgs}
}
cmakeConfigurePhase()
{
eval "$preConfigure"
if test -z "$dontFixCmake"; then
fixCmakeFiles .
fi
@ -33,9 +33,9 @@ cmakeConfigurePhase()
fi
echo "cmake flags: $cmakeFlags ${cmakeFlagsArray[@]}"
cmake ${cmakeDir:-.} $cmakeFlags ${cmakeFlagsArray[@]}
eval "$postConfigure"
}