diff options
author | chase maupin <chasemaupin03@gmail.com> | 2010-12-17 06:56:32 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2010-12-21 15:15:57 -0500 |
commit | 846c9d27006b7a0c846c075ce4deb140689b3023 (patch) | |
tree | caea931ab72a9fb70130ef03dad670a7ba2dbefc /classes | |
parent | 6ae45bbf2b5ca9e4fd7e8b04e461f0bf120dd44d (diff) | |
download | openembedded-846c9d27006b7a0c846c075ce4deb140689b3023.tar.gz |
sourceipk: copy over hidden files and dirs
* Copy hidden files and directories such as eclipse
project files. Currently these files are not copied
for the top-level directory which makes applications with
eclipse project files not usable with eclipse.
* Only need to copy hidden files for the top-level directory
since subdirectories do not experience this problem
Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/sourceipk.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/classes/sourceipk.bbclass b/classes/sourceipk.bbclass index 97068def0c..17a7cdd9d7 100644 --- a/classes/sourceipk.bbclass +++ b/classes/sourceipk.bbclass @@ -106,6 +106,16 @@ 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 [ ${SRCIPK_INCLUDE_EXTRAFILES} != "0" ] then |