Ticket #3479: 0001-Ticket-3479-Fix-mc.pot-comment-tripping-up-Transifex.patch

File 0001-Ticket-3479-Fix-mc.pot-comment-tripping-up-Transifex.patch, 1.5 KB (added by zaytsev, 9 years ago)
  • po/Rules-pot-defaults

    From f31d1c32075d69311242b02996dcdac4379fcd6c Mon Sep 17 00:00:00 2001
    From: "Yury V. Zaytsev" <yury@shurup.com>
    Date: Sun, 7 Jun 2015 20:08:43 +0200
    Subject: [PATCH] Ticket #3479: Fix mc.pot comment tripping up Transifex and
     unportable inplace sed
    
    Transifex doesn't like it when there is no space after `#` and complains
    about autogenerated `/# "Plural-Forms ...` string; fix it and remove
    unportable inplace sed invocation.
    
    Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
    ---
     po/Rules-pot-defaults |    4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/po/Rules-pot-defaults b/po/Rules-pot-defaults
    index 80b9e55..2cf834e 100644
    a b update-po: Makefile 
    44        sed \ 
    55            -e '/#, fuzzy/d' \ 
    66            -e 's/Project-Id-Version: PACKAGE VERSION/Project-Id-Version: $(PACKAGE) $(VERSION)/' \ 
    7             -e 's/^"Plural-Forms: nplurals=INTEGER;/#"Plural-Forms: nplurals=INTEGER;/' \ 
     7            -e 's/^"Plural-Forms: nplurals=INTEGER;/# "Plural-Forms: nplurals=INTEGER;/' \ 
    88            -e 's@Content-Type: text/plain; charset=CHARSET@Content-Type: text/plain; charset=utf-8@' \ 
    99            < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ 
    1010        mv -f $(DOMAIN).1po $(srcdir)/$(DOMAIN).pot 
    1111        test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) 
    1212        $(MAKE) update-gmo && \ 
    13         for i in $(srcdir)/*.po; do sed -i '/^#\:/d' $$i; done 
     13        for i in $(srcdir)/*.po; do sed '/^#\:/d' < $$i > $$i.clean && mv -f $$i.clean $$i; done