Skip to contentSkip to conversation

sourceipk: copy over hidden files and dirs

PATCH Superseded Chase Maupin 2 participants 2 messages Dec 18, 2010

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sourceipk: copy over hidden files and dirs

* 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.

---
 classes/sourceipk.bbclass |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
classes/sourceipk.bbclass +6 -0
index 97068de..213bff9 100644
@@ -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
Signature · 1 line
1.7.0.4
#1 lore raw

Please ignore this patch for now. I forgot the case where there are no hidden files and I need to update to handle this.

Quoted 36 lines

-----Original Message-----
From: Chase Maupin [mailto:[email protected]]
Sent: Thursday, December 16, 2010 3:43 PM
To: [email protected]
Cc: Maupin, Chase
Subject: [PATCH] sourceipk: copy over hidden files and dirs

* 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.

---
 classes/sourceipk.bbclass |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
classes/sourceipk.bbclass +6 -1
index 97068de..213bff9 100644
@@ -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
--

1.7.0.4