From c891e7c828d21530f110c04dabe70515447c7d67 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Fri, 22 Jan 2021 21:28:28 +0100 Subject: Makefile.am: Normalize downloaded po files. * Makefile.am (make-download-po-rule): Normalize po files. --- Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 8a8133d669..d479032f83 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 ; \ -- cgit 1.4.1