Makefile.am: Normalize downloaded po files.

* Makefile.am (make-download-po-rule): Normalize po files.
This commit is contained in:
Julien Lepiller 2021-01-22 21:28:28 +01:00
parent db74cc6a2f
commit c891e7c828
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -990,7 +990,10 @@ download-po.$(1):
if wget -nv -O "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp" \ if wget -nv -O "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp" \
"https://translate.fedoraproject.org/api/translations/guix/$(1)/$$$$lang/file/" ; \ "https://translate.fedoraproject.org/api/translations/guix/$(1)/$$$$lang/file/" ; \
then \ then \
mv "$(top_srcdir)/$(2)/$(3)$$$$lang.po"{.tmp,} ; \ msgfilter --no-wrap -i "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp" \
cat > "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp2" ; \
rm "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp" ; \
mv "$(top_srcdir)/$(2)/$(3)$$$$lang.po"{.tmp2,} ; \
else \ else \
rm "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp" ; \ rm "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp" ; \
fi ; \ fi ; \