summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <llandwerlin@gmail.com>2010-04-30 00:24:08 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2010-05-02 07:33:25 (GMT)
commit6660b7dc3fd34de25de64d1cf983d097939b47c5 (patch)
treeb8350241da54d8fff05f3c34be2eefb40beaf65a
parente8b469b81fe06cbc01f2c00dfe11a2193c612327 (diff)
downloadbuildroot-6660b7dc3fd34de25de64d1cf983d097939b47c5.tar.gz
buildroot-6660b7dc3fd34de25de64d1cf983d097939b47c5.tar.bz2
scripts: force copy of files to erase already present and readonly files
Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rwxr-xr-xscripts/copy.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/copy.sh b/scripts/copy.sh
index 410606d..508ed56 100755
--- a/scripts/copy.sh
+++ b/scripts/copy.sh
@@ -5,7 +5,7 @@ TARGET_DIR=$2
echo "Copying development files to target..."
-cp -a ${STAGING_DIR}/usr/include ${TARGET_DIR}/usr
+cp -af ${STAGING_DIR}/usr/include ${TARGET_DIR}/usr
for LIBSDIR in /lib /usr/lib; do
for WILDCARD in *.a *.la; do
@@ -13,7 +13,7 @@ for LIBSDIR in /lib /usr/lib; do
STAGING_STRIPPED=${FILE_PATH##${STAGING_DIR}}
EXTENDED_DIR=${STAGING_STRIPPED%/${WILDCARD}}
mkdir -p ${TARGET_DIR}${EXTENDED_DIR}
- cp ${FILE_PATH} ${TARGET_DIR}${STAGING_STRIPPED}
+ cp -fa ${FILE_PATH} ${TARGET_DIR}${STAGING_STRIPPED}
#echo ${TARGET_DIR}${STAGING_STRIPPED}
done
done