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:
parent
ffceacbd7d
commit
246e321848
15
po/Makefile
15
po/Makefile
@ -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
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user