Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: llandwerlin at gmail.com <llandwerlin@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/8] scripts: force copy of files to erase already present and readonly files
Date: Fri, 30 Apr 2010 02:24:08 +0200	[thread overview]
Message-ID: <1272587053-19535-4-git-send-email-llandwerlin@gmail.com> (raw)
In-Reply-To: <1272587053-19535-1-git-send-email-llandwerlin@gmail.com>

From: Lionel Landwerlin <llandwerlin@gmail.com>

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
---
 scripts/copy.sh |    4 ++--
 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
-- 
1.7.0.4

  parent reply	other threads:[~2010-04-30  0:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-30  0:24 [Buildroot] [pull request] Fixes for 2010.05 llandwerlin at gmail.com
2010-04-30  0:24 ` [Buildroot] [PATCH 1/8] package: Force copy of .la files at the post install hook (readonly files might be problematic) llandwerlin at gmail.com
2010-05-02  7:32   ` Peter Korsgaard
2010-04-30  0:24 ` [Buildroot] [PATCH 2/8] package: Add $(HOST_DIR)/usr/lib to LD_LIBRARY_PATH for host but not target llandwerlin at gmail.com
2010-05-01 12:10   ` [Buildroot] [PATCH] " llandwerlin at gmail.com
2010-04-30  0:24 ` llandwerlin at gmail.com [this message]
2010-05-02  7:33   ` [Buildroot] [PATCH 3/8] scripts: force copy of files to erase already present and readonly files Peter Korsgaard
2010-04-30  0:24 ` [Buildroot] [PATCH 4/8] package: added PKG_CONF_ENV variables to host packages llandwerlin at gmail.com
2010-05-01 11:08   ` Thomas Petazzoni
2010-05-02  7:31   ` Peter Korsgaard
2010-04-30  0:24 ` [Buildroot] [PATCH 5/8] libtool: added LIBTOOLIZE variable to point on $(HOST_DIR)/usr/bin/libtoolize llandwerlin at gmail.com
2010-05-01 11:08   ` Thomas Petazzoni
2010-05-02  7:34   ` Peter Korsgaard
2010-04-30  0:24 ` [Buildroot] [PATCH 6/8] autoconf: added AUTOHEADER variable llandwerlin at gmail.com
2010-05-01 11:08   ` Thomas Petazzoni
2010-05-02  7:38   ` Peter Korsgaard
2010-04-30  0:24 ` [Buildroot] [PATCH 7/8] autoconf: added missing AUTOMAKE variable setting llandwerlin at gmail.com
2010-05-01 11:09   ` Thomas Petazzoni
2010-05-02  7:41   ` Peter Korsgaard
2010-04-30  0:24 ` [Buildroot] [PATCH 8/8] autoconf: added AUTOCONF " llandwerlin at gmail.com
2010-05-01 11:09   ` Thomas Petazzoni
2010-05-02  7:42   ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1272587053-19535-4-git-send-email-llandwerlin@gmail.com \
    --to=llandwerlin@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox