guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: Makefile.am: Normalize downloaded po files.


From: guix-commits
Subject: 01/03: Makefile.am: Normalize downloaded po files.
Date: Thu, 28 Jan 2021 10:41:29 -0500 (EST)

roptat pushed a commit to branch master
in repository guix.

commit c891e7c828d21530f110c04dabe70515447c7d67
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Fri Jan 22 21:28:28 2021 +0100

    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 8a8133d..d479032 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 ;                                                                  
\



reply via email to

[Prev in Thread] Current Thread [Next in Thread]