[oe-commits] clarson : sourceipk: use tar to get the files copied, rather than cp
git version control
git at git.openembedded.org
Thu Jun 2 19:15:29 UTC 2011
Module: openembedded.git
Branch: master
Commit: ec05290d0a921f7df7b4e3b67beea318874bc952
URL: http://git.openembedded.org/?p=openembedded.git&a=commit;h=ec05290d0a921f7df7b4e3b67beea318874bc952
Author: clarson <clarson at 6a149ff2-cb3c-0410-b4c8-c88968701766>
Date: Thu May 19 19:20:37 2011 +0000
sourceipk: use tar to get the files copied, rather than cp
Signed-off-by: Chris Larson <chris_larson at mentor.com>
git-svn-id: http://svr-alm-svn-01.alm.mentorg.com:8080/svn/ea/easi_oe/system-builder/release-2011.1/sb-core@4917 6a149ff2-cb3c-0410-b4c8-c88968701766
---
classes/sourceipk.bbclass | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/classes/sourceipk.bbclass b/classes/sourceipk.bbclass
index a92e462..8214f78 100644
--- a/classes/sourceipk.bbclass
+++ b/classes/sourceipk.bbclass
@@ -108,17 +108,9 @@ sourceipk_do_create_srcipk() {
# Copy sources for packaging
mkdir -p $tmp_dir/${SRCIPK_INSTALL_DIR}
- cp -RLf ${S}/* $tmp_dir/${SRCIPK_INSTALL_DIR}/
- # Copy any hidden files in the source directory such as
- # eclipse project files. Use a regex to avoid trying to
- # copy the . and .. directories. This is only required for
- # the top-level directory as the hidden files will be copied
- # for subdiretories.
- hidden_files=`find ${S} -maxdepth 1 -name ".*"`
- for f in $hidden_files
- do
- cp -rf $f $tmp_dir/${SRCIPK_INSTALL_DIR}/
- done
+ if [ -e ${S} ]; then
+ tar -C ${S} -cO . | tar -C $tmp_dir/${SRCIPK_INSTALL_DIR} -xpf -
+ fi
if [ ${SRCIPK_INCLUDE_EXTRAFILES} != "0" ]
then
More information about the Openembedded-commits
mailing list