summaryrefslogtreecommitdiff
path: root/scripts/populate.in
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-01-02 17:00:54 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-01-02 17:00:54 (GMT)
commit8908eb30375d19816e1329b8a4aa4daa430204b0 (patch)
treefbeb902d914447973cc68d2a96717367ad3c6d9c /scripts/populate.in
parent5ae9b7faf9d8ee65a965b3cd40e2fad63f7884ab (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/populate.in')
-rw-r--r--scripts/populate.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/populate.in b/scripts/populate.in
index 9bb5afb..5dbe313 100644
--- a/scripts/populate.in
+++ b/scripts/populate.in
@@ -127,9 +127,9 @@ mkdir -p "${CT_ROOT_DST_DIR}"
CT_ROOT_SRC_DIR=$(cd "${CT_ROOT_SRC_DIR}"; pwd)
CT_ROOT_DST_DIR=$(cd "${CT_ROOT_DST_DIR}"; pwd)
-# Populate the destination directory with files form the source directory
+# Populate the destination directory with files from the source directory
pushd "${CT_ROOT_SRC_DIR}" >/dev/null
-tar cf - . |tar xf - -C "${CT_ROOT_DST_DIR}"
+cp -a . "${CT_ROOT_DST_DIR}"
popd >/dev/null
# A function do search for a library