From: David Woodhouse Date: Thu, 5 Jul 2012 10:03:37 +0000 (+0100) Subject: Strip out full header when comparing po files X-Git-Tag: v4.04~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=649e5a2ac67265207c787bdd8bcf4314a315f313;p=platform%2Fupstream%2Fopenconnect.git Strip out full header when comparing po files Signed-off-by: David Woodhouse --- diff --git a/Makefile.am b/Makefile.am index f9d0ee0..fe07cd0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -106,11 +106,11 @@ update-translations: po/$(PACKAGE).pot echo "*** ERROR: Uncommitted changes in above files"; exit 1; \ else \ for a in po/*.po; do \ - msgmerge -q -N -F $$a $(abs_builddir)/po/$(PACKAGE).pot | egrep -v PO-Revision-Date:\|Language-Team: > $$a.old ; \ + msgmerge -q -N -F $$a $(abs_builddir)/po/$(PACKAGE).pot | sed '0,/^#:/d' > $$a.old ; \ done && \ tx pull -af && \ for a in po/*.po; do \ - msgmerge -q -N -F $$a $(abs_builddir)/po/$(PACKAGE).pot | egrep -v PO-Revision-Date:\|Language-Team: > $$a.new ; \ + msgmerge -q -N -F $$a $(abs_builddir)/po/$(PACKAGE).pot | sed '0,/^#:/d' > $$a.new ; \ if ! git ls-tree --name-only HEAD $$a | grep -q $$a; then \ echo New file $$a ; \ git add $$a ; \