summaryrefslogtreecommitdiffstats
path: root/lldb/scripts
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2013-01-30 00:48:11 +0000
committerFilipe Cabecinhas <me@filcab.net>2013-01-30 00:48:11 +0000
commit45f0c66bc38f948ebcc8940bb44a3089574be98f (patch)
treec2858dea68670309cb895919642eecae892d18f1 /lldb/scripts
parent5368173f12b6abe4f45d1d48aa45a50c98fd35fc (diff)
downloadbcm5719-llvm-45f0c66bc38f948ebcc8940bb44a3089574be98f.tar.gz
bcm5719-llvm-45f0c66bc38f948ebcc8940bb44a3089574be98f.zip
Use printf instead of echo -n (the latter won't work on OS X's /bin/sh)
llvm-svn: 173867
Diffstat (limited to 'lldb/scripts')
-rwxr-xr-xlldb/scripts/Python/finish-swig-Python-LLDB.sh4
1 files changed, 2 insertions, 2 deletions
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
OpenPOWER on IntegriCloud