summaryrefslogtreecommitdiff
path: root/scripts/build/libc_uClibc.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-07-07 21:25:57 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-07-07 21:25:57 (GMT)
commit22bd5ce4cad2496772a005556fbc33bbbcad4bf9 (patch)
tree1af16bbf8169d1bb48564e52e89b8d250c2e7ca2 /scripts/build/libc_uClibc.sh
parent48728211f654cf3f8113097fa00a14f89f197779 (diff)
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(-)
Diffstat (limited to 'scripts/build/libc_uClibc.sh')
-rw-r--r--scripts/build/libc_uClibc.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build/libc_uClibc.sh b/scripts/build/libc_uClibc.sh
index ce768a1..a650559 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