2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
include client.mk
|
|
|
|
|
|
|
|
.PHONY : check-l10n
|
|
|
|
|
|
|
|
check-l10n:
|
|
|
|
for loc in $(MOZ_CO_LOCALES); do \
|
|
|
|
for mod in $(sort $(foreach project,$(MOZ_PROJECT_LIST),$(LOCALES_$(project)))); do \
|
|
|
|
echo Comparing $(TOPSRCDIR)/$$mod/locales/en-US with $(TOPSRCDIR)/../l10n/$$loc/$$mod; \
|
|
|
|
perl $(TOPSRCDIR)/toolkit/locales/compare-locales.pl $(TOPSRCDIR)/$$mod/locales/en-US $(TOPSRCDIR)/../l10n/$$loc/$$mod; \
|
|
|
|
done; \
|
|
|
|
done;
|
|
|
|
|
|
|
|
create-%:
|
|
|
|
for mod in $(sort $(foreach project,$(MOZ_PROJECT_LIST),$(LOCALES_$(project)))); do \
|
|
|
|
if test -d $(TOPSRCDIR)/../l10n/$*/$$mod; then \
|
|
|
|
echo $(TOPSRCDIR)/../l10n/$*/$$mod already exists; \
|
|
|
|
else \
|
|
|
|
echo Creating $(TOPSRCDIR)/../l10n/$*/$$mod from $(TOPSRCDIR)/$$mod/locales/en-US; \
|
2007-05-30 11:00:53 -07:00
|
|
|
mkdir -p ../l10n/$*/$$mod; \
|
2007-03-22 10:30:00 -07:00
|
|
|
cp -r $(TOPSRCDIR)/$$mod/locales/en-US/* $(TOPSRCDIR)/../l10n/$*/$$mod; \
|
|
|
|
find $(TOPSRCDIR)/../l10n/$*/$$mod -name CVS | xargs rm -rf; \
|
|
|
|
fi; \
|
|
|
|
done;
|