[Lldb-commits] [lldb] r173867 - Use printf instead of echo -n (the latter won't work on OS X's /bin/sh)
Filipe Cabecinhas
me at filcab.net
Tue Jan 29 16:48:11 PST 2013
Author: filcab
Date: Tue Jan 29 18:48:11 2013
New Revision: 173867
URL: http://llvm.org/viewvc/llvm-project?rev=173867&view=rev
Log:
Use printf instead of echo -n (the latter won't work on OS X's /bin/sh)
Modified:
lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh
Modified: lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh?rev=173867&r1=173866&r2=173867&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh (original)
+++ lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh Tue Jan 29 18:48:11 2013
@@ -192,14 +192,14 @@ create_python_package () {
package_init_file="${package_dir}/__init__.py"
if [ ! -f "${package_init_file}" ]
then
- echo -n "__all__ = [" > "${package_init_file}"
+ printf "__all__ = [" > "${package_init_file}"
python_module_separator=""
for package_file in $package_files
do
if [ -f "${package_file}" ]
then
package_file_basename=$(basename "${package_file}")
- echo -n "${python_module_separator}\"${package_file_basename%.*}\"" >> "${package_init_file}"
+ printf "${python_module_separator}\"${package_file_basename%.*}\"" >> "${package_init_file}"
python_module_separator=", "
fi
done
More information about the lldb-commits
mailing list