aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2021-01-22 21:28:28 +0100
committerJulien Lepiller <julien@lepiller.eu>2021-01-28 16:41:03 +0100
commitc891e7c828d21530f110c04dabe70515447c7d67 (patch)
tree3e19624b64c21ad5afd621a76c95495b7e8a0316 /Makefile.am
parentdb74cc6a2f6de1c40ef585089316f407e9784d83 (diff)
downloadguix-c891e7c828d21530f110c04dabe70515447c7d67.tar
guix-c891e7c828d21530f110c04dabe70515447c7d67.tar.gz
Makefile.am: Normalize downloaded po files.
* Makefile.am (make-download-po-rule): Normalize po files.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am5
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 ; \