Skip to contentSkip to conversation

sourceipk: copy over hidden files and dirs

PATCH In review Chase Maupin 2 participants 2 messages Dec 18, 2010 – Dec 20, 2010

lore
Share & tools
lore
#0 lore raw

PATCH v2 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 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

---
updated in version 2:
* Only copy hidden files in the top-level directory
* Handle the case where there are no hidden files

---
 classes/sourceipk.bbclass |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
classes/sourceipk.bbclass +10 -0
index 97068de..17a7cdd 100644
@@ -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
Signature · 1 line
1.7.0.4
Acked-by on v2 1/1
#1 lore raw
Quoted 8 lines · Chase Maupin

* 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

Quoted 37 lines

---
updated in version 2:
* Only copy hidden files in the top-level directory
* Handle the case where there are no hidden files

---
 classes/sourceipk.bbclass |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
classes/sourceipk.bbclass +10 -0
index 97068de..17a7cdd 100644
@@ -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
Signature · 7 lines
1.7.0.4


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel