Use printf instead of echo -n (the latter won't work on OS X's /bin/sh)
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@173867 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/finish-swig-Python-LLDB.sh b/scripts/Python/finish-swig-Python-LLDB.sh
index 8c1fb4e..d0f3c25 100755
--- a/scripts/Python/finish-swig-Python-LLDB.sh
+++ b/scripts/Python/finish-swig-Python-LLDB.sh
@@ -192,14 +192,14 @@
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