mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
build-aux: rewrite po file minimizer in Python
As part of an goal to eliminate Perl from libvirt build tools, rewrite the minimize-po.pl tool in Python. This was a straight conversion, manually going line-by-line to change the syntax from Perl to Python. Thus the overall structure of the file and approach is the same. Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -58,7 +58,7 @@ update-mini-po: $(POTFILE)
|
||||
$(MSGMERGE) --no-location --no-fuzzy-matching --sort-output \
|
||||
$$lang.po $(POTFILE) | \
|
||||
$(SED) $(SED_PO_FIXUP_ARGS) | \
|
||||
$(PERL) $(top_srcdir)/build-aux/minimize-po.pl > \
|
||||
$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/minimize-po.py > \
|
||||
$(srcdir)/$$lang.mini.po ; \
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user