Bug 1426083 - Support spaces when dealing with multilocale.json r?glandium draft
authorSylvestre Ledru <sledru@mozilla.com>
Tue, 19 Dec 2017 11:22:57 +0100
changeset 712976 5ecb0304cd3b7fe3358616fea795e08c0fd7c30b
parent 709718 22428ed09798134f0cbc77ce74330cec2e7eddd6
child 744210 97832bd1c1e9b198ac0f4ce84ea3336b5482572c
push id93509
push userbmo:sledru@mozilla.com
push dateTue, 19 Dec 2017 10:23:15 +0000
reviewersglandium
bugs1426083
milestone59.0a1
Bug 1426083 - Support spaces when dealing with multilocale.json r?glandium MozReview-Commit-ID: Io4fRdcOd1j
toolkit/mozapps/installer/packager.mk
--- 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) ;\