diff options
author | Julien Lepiller <julien@lepiller.eu> | 2021-01-22 21:28:28 +0100 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2021-01-28 16:41:03 +0100 |
commit | c891e7c828d21530f110c04dabe70515447c7d67 (patch) | |
tree | 3e19624b64c21ad5afd621a76c95495b7e8a0316 | |
parent | db74cc6a2f6de1c40ef585089316f407e9784d83 (diff) | |
download | guix-c891e7c828d21530f110c04dabe70515447c7d67.tar.gz guix-c891e7c828d21530f110c04dabe70515447c7d67.zip |
Makefile.am: Normalize downloaded po files.
* Makefile.am (make-download-po-rule): Normalize po files.
-rw-r--r-- | Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
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 ; \ |