Backout a74bd5095902, Bug 959405 - Please update the Buri Moz-central, 1.3, 1.2 with...
[gecko.git] / tools / l10n / l10n.mk
blob1554627e1e3cf889409e805318015c14fc4e71bd
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 include client.mk
7 .PHONY : check-l10n
9 check-l10n:
10 for loc in $(MOZ_CO_LOCALES); do \
11 for mod in $(sort $(foreach project,$(MOZ_PROJECT_LIST),$(LOCALES_$(project)))); do \
12 echo Comparing $(TOPSRCDIR)/$$mod/locales/en-US with $(TOPSRCDIR)/../l10n/$$loc/$$mod; \
13 perl $(TOPSRCDIR)/toolkit/locales/compare-locales.pl $(TOPSRCDIR)/$$mod/locales/en-US $(TOPSRCDIR)/../l10n/$$loc/$$mod; \
14 done; \
15 done;
17 create-%:
18 for mod in $(sort $(foreach project,$(MOZ_PROJECT_LIST),$(LOCALES_$(project)))); do \
19 if test -d $(TOPSRCDIR)/../l10n/$*/$$mod; then \
20 echo $(TOPSRCDIR)/../l10n/$*/$$mod already exists; \
21 else \
22 echo Creating $(TOPSRCDIR)/../l10n/$*/$$mod from $(TOPSRCDIR)/$$mod/locales/en-US; \
23 mkdir -p ../l10n/$*/$$mod; \
24 cp -r $(TOPSRCDIR)/$$mod/locales/en-US/* $(TOPSRCDIR)/../l10n/$*/$$mod; \
25 find $(TOPSRCDIR)/../l10n/$*/$$mod -name CVS | xargs rm -rf; \
26 fi; \
27 done;