From 649e5a2ac67265207c787bdd8bcf4314a315f313 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Thu, 5 Jul 2012 11:03:37 +0100 Subject: [PATCH] Strip out full header when comparing po files Signed-off-by: David Woodhouse --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ; \ -- 2.7.4