summaryrefslogtreecommitdiff
path: root/librelogo
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-04-18 13:54:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-04-18 15:38:27 +0200
commit2c1a12d351d1792bac3c57dfbc7caab5b65978d6 (patch)
treeaacd830dc2e0a9f3540fc4de804297a07ee82498 /librelogo
parentdb698a94ad52d1fbc387df66845907595615bb4f (diff)
Don't set LANG env var by accident
...as setting a GNU Make LANG var exports it to recipes as an env var, and see e.g. 56bc0b1a376f62570a7287e9bb4193e00360c978 "Don't set locale env vars on macOS" for potential problems caused by that. This is the core half of a change spanning the core and help repos. Change-Id: Ib7ae3b6edcef0b70e211a01aad4b3bd5c8905e06 Reviewed-on: https://gerrit.libreoffice.org/70929 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'librelogo')
-rw-r--r--librelogo/CustomTarget_librelogo.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/librelogo/CustomTarget_librelogo.mk b/librelogo/CustomTarget_librelogo.mk
index a523d501b2de..6cc693f34aa2 100644
--- a/librelogo/CustomTarget_librelogo.mk
+++ b/librelogo/CustomTarget_librelogo.mk
@@ -17,7 +17,7 @@ $(call librelogo_Properties__Properties_impl,$(librelogo_DIR)/LibreLogo_$(1).pro
endef
define librelogo_Properties__Properties_impl
-$(1) : LANG := $(4)
+$(1) : LANGUAGE := $(4)
$(1) : POFILE := $(3)
$(1) : SOURCE := $(2)
@@ -37,20 +37,20 @@ $(librelogo_DIR)/LibreLogo_%.properties : \
| $(librelogo_DIR)/.dir
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRP,1)
$(call gb_Helper_abbreviate_dirs, \
- $(if $(filter-out qtz,$(LANG)), \
+ $(if $(filter-out qtz,$(LANGUAGE)), \
MERGEINPUT=$(call var2file,$(shell $(gb_MKTEMP)),100,$(POFILE)) && \
$(call gb_Executable_get_command,propex) \
-i $(SOURCE) \
-o $@ \
-m $${MERGEINPUT} \
- -l $(LANG) && \
+ -l $(LANGUAGE) && \
rm -rf $${MERGEINPUT} \
, \
$(call gb_Executable_get_command,propex) \
-i $(SOURCE) \
-o $@ \
-m \
- -l $(LANG) \
+ -l $(LANGUAGE) \
) \
)