From 22bd5ce4cad2496772a005556fbc33bbbcad4bf9 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 7 Jul 2008 21:25:57 +0000 Subject: Although working with bash, 'echo -n' is really non-portable. Get rid of this by using printf(1) with no trailing new-line (\n). Again, thanks to Martin GUY, who pointed this issue. /trunk/kconfig/kconfig.mk | 2 1 1 0 /trunk/scripts/build/libc_uClibc.sh | 4 3 1 0 ++ /trunk/scripts/showSamples.sh | 78 39 39 0 +++++++++++++++++++++--------------------- 3 files changed, 43 insertions(+), 41 deletions(-) --- scripts/build/libc_uClibc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/build') diff --git a/scripts/build/libc_uClibc.sh b/scripts/build/libc_uClibc.sh index ce768a10..a650559d 100644 --- a/scripts/build/libc_uClibc.sh +++ b/scripts/build/libc_uClibc.sh @@ -154,7 +154,9 @@ mungeuClibcConfig() { dst_config_file="$2" munge_file="${CT_BUILD_DIR}/munge-uClibc-config.sed" - echo -n >"${munge_file}" + # Start with a fresh file + rm -f "${munge_file}" + touch "${munge_file}" # Hack our target in the config file. # Also remove stripping: its the responsibility of the -- cgit v1.2.3