diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-01-02 17:00:54 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-01-02 17:00:54 (GMT) |
commit | 8908eb30375d19816e1329b8a4aa4daa430204b0 (patch) | |
tree | fbeb902d914447973cc68d2a96717367ad3c6d9c /scripts/build/debug | |
parent | 5ae9b7faf9d8ee65a965b3cd40e2fad63f7884ab (diff) |
misc: do not use "tar cf - |tar xf -"
Using this: tar cf - -C "/some/place" |tar xf - -C "/some/other/place"
to copy a directory to another place does not properly fail (when it does).
Using this instead: cp -av "/some/place" "/some/other/place"
makes it easy to see why and how it failed.
Impacted:
libc/uClibc
debug/ltrace
tools/sstrip
scripts/populate
Diffstat (limited to 'scripts/build/debug')
-rw-r--r-- | scripts/build/debug/400-ltrace.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build/debug/400-ltrace.sh b/scripts/build/debug/400-ltrace.sh index f1e799c..6b289ab 100644 --- a/scripts/build/debug/400-ltrace.sh +++ b/scripts/build/debug/400-ltrace.sh @@ -20,11 +20,11 @@ do_debug_ltrace_extract() { do_debug_ltrace_build() { CT_DoStep INFO "Installing ltrace" - mkdir -p "${CT_BUILD_DIR}/build-ltrace" - CT_Pushd "${CT_BUILD_DIR}/build-ltrace" CT_DoLog EXTRA "Copying sources to build dir" - (cd "${CT_SRC_DIR}/ltrace-${CT_LTRACE_VERSION}"; tar cf - .)| tar xvf - |CT_DoLog ALL + CT_DoExecLog ALL cp -av "${CT_SRC_DIR}/ltrace-${CT_LTRACE_VERSION}" \ + "${CT_BUILD_DIR}/build-ltrace" + CT_Pushd "${CT_BUILD_DIR}/build-ltrace" CT_DoLog EXTRA "Configuring ltrace" CT_DoExecLog ALL \ |