From patchwork Thu Dec 16 21:43:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: sourceipk: copy over hidden files and dirs Date: Thu, 16 Dec 2010 21:43:02 -0000 From: chase maupin X-Patchwork-Id: 81 Message-Id: <1292535782-19714-1-git-send-email-Chase.Maupin@ti.com> To: openembedded-devel@lists.openembedded.org Cc: Chase Maupin * Copy hidden files and directories such as eclipse project files. Currently these files are not copied (particularly for the top-level directory) which makes applications with eclipse project files not usable with eclipse. Signed-off-by: Chase Maupin --- classes/sourceipk.bbclass | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/classes/sourceipk.bbclass b/classes/sourceipk.bbclass index 97068de..213bff9 100644 --- a/classes/sourceipk.bbclass +++ b/classes/sourceipk.bbclass @@ -106,6 +106,12 @@ 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. + cp -r ${S}/.[a-zA-Z0-9]* $tmp_dir/${SRCIPK_INSTALL_DIR}/ if [ ${SRCIPK_INCLUDE_EXTRAFILES} != "0" ] then