From 45f0c66bc38f948ebcc8940bb44a3089574be98f Mon Sep 17 00:00:00 2001 From: Filipe Cabecinhas Date: Wed, 30 Jan 2013 00:48:11 +0000 Subject: Use printf instead of echo -n (the latter won't work on OS X's /bin/sh) llvm-svn: 173867 --- lldb/scripts/Python/finish-swig-Python-LLDB.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/scripts/Python/finish-swig-Python-LLDB.sh') diff --git a/lldb/scripts/Python/finish-swig-Python-LLDB.sh b/lldb/scripts/Python/finish-swig-Python-LLDB.sh index 8c1fb4e5107..d0f3c251a22 100755 --- a/lldb/scripts/Python/finish-swig-Python-LLDB.sh +++ b/lldb/scripts/Python/finish-swig-Python-LLDB.sh @@ -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 -- cgit v1.2.3