Bug 1426083 - Support spaces when dealing with multilocale.json r?glandium
MozReview-Commit-ID: Io4fRdcOd1j
--- a/toolkit/mozapps/installer/packager.mk
+++ b/toolkit/mozapps/installer/packager.mk
@@ -201,24 +201,24 @@ else
BASE_PATH:=@RESPATH@
MULTILOCALE_DIR = $(DIST)/$(RESPATH)/res
endif
# This version of the target uses MOZ_CHROME_MULTILOCALE to build multilocale.json
# and places it in dist/bin/res - it should be used when packaging a build.
multilocale.json: LOCALES?=$(MOZ_CHROME_MULTILOCALE)
multilocale.json:
- $(call py_action,file_generate,$(MOZILLA_DIR)/toolkit/locales/gen_multilocale.py main $(MULTILOCALE_DIR)/multilocale.json $(MDDEPDIR)/multilocale.json.pp $(ALL_LOCALES))
+ $(call py_action,file_generate,$(MOZILLA_DIR)/toolkit/locales/gen_multilocale.py main '$(MULTILOCALE_DIR)/multilocale.json' $(MDDEPDIR)/multilocale.json.pp $(ALL_LOCALES))
# This version of the target uses AB_CD to build multilocale.json and places it
# in the $(XPI_NAME)/res dir - it should be used when repackaging a build.
multilocale.json-%: LOCALES?=$(AB_CD)
multilocale.json-%: MULTILOCALE_DIR=$(DIST)/xpi-stage/$(XPI_NAME)/res
multilocale.json-%:
- $(call py_action,file_generate,$(MOZILLA_DIR)/toolkit/locales/gen_multilocale.py main $(MULTILOCALE_DIR)/multilocale.json $(MDDEPDIR)/multilocale.json.pp $(ALL_LOCALES))
+ $(call py_action,file_generate,$(MOZILLA_DIR)/toolkit/locales/gen_multilocale.py main '$(MULTILOCALE_DIR)/multilocale.json' $(MDDEPDIR)/multilocale.json.pp $(ALL_LOCALES))
locale-manifest.in: LOCALES?=$(MOZ_CHROME_MULTILOCALE)
locale-manifest.in: $(GLOBAL_DEPS) FORCE
printf '\n[multilocale]\n' > $@
printf '$(BASE_PATH)/res/multilocale.json\n' >> $@
for LOCALE in $(ALL_LOCALES) ;\
do \
for ENTRY in $(MOZ_CHROME_LOCALE_ENTRIES) ;\