update locales in parallel

main
Jeff Moe 2023-11-29 09:09:10 -07:00
parent fb3e41e78a
commit be612a1c2e
1 changed files with 6 additions and 3 deletions

View File

@ -47,9 +47,12 @@ gettext_build:
$(SPHINXBUILD) -b gettext -c $(SOURCEDIR) -d $(BUILDDIR)/doctrees/$(GETTEXT_BUILD) $(SOURCEDIR) $(BUILDDIR)/locale/gettext
update_locale:
@for lang in $(LANGUAGES); do \
echo "Updating locale for $$lang..."; \
$(UPDATE_LOCALE) $$lang; \
@pids="" ; \
for lang in $(LANGUAGES); do \
( echo "Updating locale for $$lang..." ; $(UPDATE_LOCALE) $$lang ) & pids="$$pids $$!" ; \
done ; \
for pid in $$pids; do \
wait $$pid ; \
done
html: