For environment variable templating

Signed-off-by: Lars Pedersen <[email protected]>
---
 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)"
        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
+       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 
<[email protected]>")
        @$(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
[email protected]

Reply via email to