All of lore.kernel.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: Chase Maupin <Chase.Maupin@ti.com>
Subject: Re: [PATCHv2] sourceipk: copy over hidden files and dirs
Date: Sun, 19 Dec 2010 19:16:06 -0800	[thread overview]
Message-ID: <20101220031606.GC26429@gmail.com> (raw)
In-Reply-To: <1292540192-26920-1-git-send-email-Chase.Maupin@ti.com>

On (16/12/10 16:56), Chase Maupin wrote:
> * 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>


> ---
> 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(-)
> 
> diff --git a/classes/sourceipk.bbclass b/classes/sourceipk.bbclass
> index 97068de..17a7cdd 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
> -- 
> 1.7.0.4
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



      reply	other threads:[~2010-12-20  3:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-16 22:56 [PATCHv2] sourceipk: copy over hidden files and dirs Chase Maupin
2010-12-20  3:16 ` Khem Raj [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101220031606.GC26429@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=Chase.Maupin@ti.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.