diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-01-02 18:00:54 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-01-02 18:00:54 +0100 |
commit | 8908eb30375d19816e1329b8a4aa4daa430204b0 (patch) | |
tree | fbeb902d914447973cc68d2a96717367ad3c6d9c /scripts/populate.in | |
parent | 5ae9b7faf9d8ee65a965b3cd40e2fad63f7884ab (diff) | |
download | crosstool-ng-8908eb30375d19816e1329b8a4aa4daa430204b0.tar.gz crosstool-ng-8908eb30375d19816e1329b8a4aa4daa430204b0.tar.bz2 crosstool-ng-8908eb30375d19816e1329b8a4aa4daa430204b0.zip |
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.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/populate.in b/scripts/populate.in index 9bb5afb7..5dbe313a 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 |