Browse Source

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>
Yury V. Zaytsev 9 years ago
parent
commit
f31d1c3207
1 changed files with 2 additions and 2 deletions
  1. 2 2
      po/Rules-pot-defaults

+ 2 - 2
po/Rules-pot-defaults

@@ -4,10 +4,10 @@ update-po: Makefile
 	sed \
 	    -e '/#, fuzzy/d' \
 	    -e 's/Project-Id-Version: PACKAGE VERSION/Project-Id-Version: $(PACKAGE) $(VERSION)/' \
-	    -e 's/^"Plural-Forms: nplurals=INTEGER;/#"Plural-Forms: nplurals=INTEGER;/' \
+	    -e 's/^"Plural-Forms: nplurals=INTEGER;/# "Plural-Forms: nplurals=INTEGER;/' \
 	    -e 's@Content-Type: text/plain; charset=CHARSET@Content-Type: text/plain; charset=utf-8@' \
 	    < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
 	mv -f $(DOMAIN).1po $(srcdir)/$(DOMAIN).pot
 	test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
 	$(MAKE) update-gmo && \
-	for i in $(srcdir)/*.po; do sed -i '/^#\:/d' $$i; done
+	for i in $(srcdir)/*.po; do sed '/^#\:/d' < $$i > $$i.clean && mv -f $$i.clean $$i; done