This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [RESEND] scripts/crosstool-NG.sh.in: patch regex to work with BSD grep


Jason,

On Thu, Oct 16, 2014 at 11:54 AM, Jason Masker <jason@masker.net> wrote:
> Patch to make regex BSD grep compatible. Final resend before giving up. Mail client keeps stripping tabs.
>
> Signed-off-by: Jason Masker <jason@masker.net>
>
>
> diff --git a/kconfig/kconfig.mk b/kconfig/kconfig.mk
> index cb9f91c..06e022c 100644
> --- a/kconfig/kconfig.mk
> +++ b/kconfig/kconfig.mk
> @@ -38,7 +38,7 @@ defconfig:
>  # Always be silent, the stdout an be >.config
>  extractconfig:
>         @$(awk) 'BEGIN { dump=0; }                                                  \
> -                dump==1 && $$0~/^\[.....\][[:space:]]+(# |)CT_/ {                  \
> +                dump==1 && $$0~/^\[.....\][[:space:]]+(# )?CT_/ {                  \
>                      $$1="";                                                        \
>                      gsub("^[[:space:]]","");                                       \
>                      print;                                                         \
> diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
> index cd65d5b..53ac552 100644
> --- a/scripts/crosstool-NG.sh.in
> +++ b/scripts/crosstool-NG.sh.in
> @@ -125,7 +125,7 @@ CT_DoLog INFO "Build started ${CT_STAR_DATE_HUMAN}"
>  # We really need to extract from ,config and not .config.2, as we
>  # do want the kconfig's values, not our mangled config with arrays.
>  CT_DoStep DEBUG "Dumping user-supplied crosstool-NG configuration"
> -CT_DoExecLog DEBUG ${grep} -E '^(# |)CT_' .config
> +CT_DoExecLog DEBUG ${grep} -E '^(# )?CT_' .config
>  CT_EndStep
>
>  CT_DoLog DEBUG "Unsetting and unexporting MAKEFLAGS"
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>

Tip #1: Make sure that you email yann as well as crossgcc mailing list

have you tried using 'git send-email' ?

I usually run it like this: git send-email -<number of patches from
HEAD to send> --to '"Yann E. MORIN" <yann.morin.1998@free.fr>' --cc
"crossgcc@sourceware.org"

You have to have some things setup in your .gitconfig first, and you
can find help with that here:
http://git-scm.com/docs/git-send-email

-Bryan

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]