Bug 1510780 - Add distribution to SeaMonkey locales Makefile. r=frg a=frg DONTBUILD SEAMONKEY_2_49_ESR_RELBRANCH
authorIan Neal <iann_cvs@blueyonder.co.uk>
Mon, 15 Jul 2019 18:08:20 +0200
branchSEAMONKEY_2_49_ESR_RELBRANCH
changeset 28316 2000e8c0a698caa7d2c52a4a5e11b562c2df18a4
parent 28315 30f931e2beb44a76a61ef289d214a78ebeb85d95
child 28317 546ccdc72f035626d3e286b8b85edf98bb4b1152
push id2136
push userfrgrahl@gmx.net
push dateMon, 15 Jul 2019 16:13:42 +0000
treeherdercomm-esr52@6b30146aa411 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfrg, frg
bugs1510780
Bug 1510780 - Add distribution to SeaMonkey locales Makefile. r=frg a=frg DONTBUILD SeaMonkey ESR52 release branch only.
suite/locales/Makefile.in
--- a/suite/locales/Makefile.in
+++ b/suite/locales/Makefile.in
@@ -280,8 +280,22 @@ INSTALLERS_TARGETS = clobber-% $(CALENDA
 installers-%: $(INSTALLERS_TARGETS)
 	@echo 'repackaging done'
 
 repack-%: AB_CD=$*
 repack-%:
 	$(MAKE) clobber-zip AB_CD=$(AB_CD)
 	$(MAKE) merge-$(AB_CD)
 	$(MAKE) installers-$(AB_CD) MOZ_MAKE_COMPLETE_MAR=1
+
+distribution:
+	$(MAKE) -C $(DEPTH)/tools/update-packaging complete-patch PKG_INST_PATH=
+	$(foreach locale,$(SHIPPED_LOCALES),$(MAKE) -C $(DEPTH)/suite/locales/ repack-$(locale) LOCALE_MERGEDIR=$(LOCALE_MERGEDIR) MOZ_MAKE_COMPLETE_MAR=1 ;)
+
+SHIPPED_LOCALES_FILE = $(topsrcdir)/suite/locales/shipped-locales
+ifeq ($(OS_ARCH), WINNT)
+SHIPPED_FILTER = -e linux -e osx
+else ifeq ($(OS_ARCH), Darwin)
+SHIPPED_FILTER = -e linux -e win32
+else
+SHIPPED_FILTER = -e osx -e win32
+endif
+SHIPPED_LOCALES := $(shell if test -f $(SHIPPED_LOCALES_FILE); then cat $(SHIPPED_LOCALES_FILE) |grep -v -e en-US $(SHIPPED_FILTER) | cut -d " " -f1; fi)