1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

Clean up and simplify check-po rule.

This commit is contained in:
Laurent MONIN 2005-10-18 11:52:29 +02:00 committed by Laurent MONIN
parent ffceacbd7d
commit 246e321848

View File

@ -90,17 +90,10 @@ update-gmo: Makefile $(GMOFILES)
# #
check-po: check-po:
@if test -n "$(PO)"; then \ @$(foreach C,$(basename $(if $(strip $(PO)),$(PO),$(GMOFILES))), \
lang=`echo $(PO) | sed 's/\.po//'`; \ echo -n "$(C): "; \
catalogs=$$lang.gmo; \ $(GMSGFMT) --check --check-accelerators=~ --verbose --statistics -o /dev/null $(C).po; \
fi; \ )
if test -z "$$catalogs"; then catalogs='$(GMOFILES)'; fi; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\.gmo$$//'`; \
echo -n "$$lang: "; \
$(GMSGFMT) --check --check-accelerators=~ --verbose --statistics -o /dev/null $$lang.po; \
done
### Installation and distribution ### Installation and distribution
# #