mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] gettext: add envsubst option
Date: Wed, 7 Aug 2019 12:50:32 +0200	[thread overview]
Message-ID: <20190807105032.33jorssrz2s676lh@pengutronix.de> (raw)
In-Reply-To: <20190724090428.4344-1-lapeddk@gmail.com>

On Wed, Jul 24, 2019 at 11:04:28AM +0200, Lars Pedersen wrote:
> For environment variable templating
> 
> Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> ---
>  rules/gettext.in   | 14 +++++++++++++-
>  rules/gettext.make |  4 ++++
>  2 files changed, 17 insertions(+), 1 deletion(-)
> 
> diff --git a/rules/gettext.in b/rules/gettext.in
> index 5b971f7d1..1b322ae35 100644
> --- a/rules/gettext.in
> +++ b/rules/gettext.in
> @@ -1,5 +1,5 @@
>  ## SECTION=system_libraries
> -config GETTEXT
> +menuconfig GETTEXT
>  	tristate
>  	prompt "gettext (gnu)"

Add spaces at the end to align the '-->'

>  	select LIBC_M
> @@ -10,3 +10,15 @@ config GETTEXT
>  	  The gettext program translates a natural language
>  	  message into the user's language, by looking up
>  	  the translation in a message catalog.
> +
> +
> +if GETTEXT
> +
> +config GETTEXT_ENVSUBST
> +	bool
> +	default n

Remove this line. It's the default.

Michael

> +	prompt "envsubst"
> +	help
> +	  Substitutes environment variables in shell format strings
> +
> +endif
> diff --git a/rules/gettext.make b/rules/gettext.make
> index 0bda25c96..dd1d22ffb 100644
> --- a/rules/gettext.make
> +++ b/rules/gettext.make
> @@ -71,6 +71,10 @@ $(STATEDIR)/gettext.targetinstall:
>  	@$(call install_fixup, gettext,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
>  	@$(call install_fixup, gettext,DESCRIPTION,missing)
>  
> +ifdef PTXCONF_GETTEXT_ENVSUBST
> +	@$(call install_copy, gettext, 0, 0, 0755, -, /usr/bin/envsubst)
> +endif
> +
>  	@$(call install_copy, gettext, 0, 0, 0755, -, /usr/bin/xgettext)
>  	@$(call install_copy, gettext, 0, 0, 0755, -, /usr/bin/gettext)
>  
> -- 
> 2.21.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2019-08-07 10:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-24  9:04 Lars Pedersen
2019-08-07 10:50 ` Michael Olbrich [this message]
2019-08-26  9:54   ` [ptxdist] [PATCH v2] " Lars Pedersen

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=20190807105032.33jorssrz2s676lh@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox