me
/
guix
Archived
1
0
Fork 0

Makefile.am: Normalize downloaded po files.

* Makefile.am (make-download-po-rule): Normalize po files.
master
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
1 changed files with 4 additions and 1 deletions

View File

@ -990,7 +990,10 @@ download-po.$(1):
if wget -nv -O "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp" \
"https://translate.fedoraproject.org/api/translations/guix/$(1)/$$$$lang/file/" ; \
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 \
rm "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp" ; \
fi ; \