mc/po/Rules-pot-defaults
Slava Zanko f2d8804b5a Comments from po-files now removed automatically after make "update-po" command
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-04-08 11:30:07 +03:00

14 lines
594 B
Plaintext

update-po: Makefile
$(MAKE) $(DOMAIN).pot-update && \
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@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