From d0804acdc2974541bdb15558adf26f2d3dc81818 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 20 Feb 2007 23:13:49 +0000 Subject: * Smarter detection of no-op changes to po files. --- po/Makefile | 6 +++--- po/ikiwiki.pot | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'po') diff --git a/po/Makefile b/po/Makefile index cc931c5a8..52e702e47 100644 --- a/po/Makefile +++ b/po/Makefile @@ -29,9 +29,9 @@ clean: %.po: ikiwiki.pot @echo -n "Merging ikiwiki.pot and $@" @msgmerge $@ ikiwiki.pot -o $@.new 2>&1 -# Typically all that changes was a date. I'd prefer not to commit such -# changes, so detect and ignore them. - @if [ "`diff $@ $@.new | grep '[<>]' | wc -l`" -ne 2 ]; then \ +# Typically all that changes was a date or line number. I'd prefer not to +# commit such changes, so detect and ignore them. + @if [ "`diff $@ $@.new | grep '[<>]' | grep -v '[<>] #:' | wc -l`" -ne 2 ]; then \ mv -f $@.new $@; \ else \ rm -f $@.new; \ diff --git a/po/ikiwiki.pot b/po/ikiwiki.pot index d42394cbd..29673a1d1 100644 --- a/po/ikiwiki.pot +++ b/po/ikiwiki.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2007-02-19 23:10-0500\n" +"POT-Creation-Date: 2007-02-20 18:12-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -449,7 +449,7 @@ msgstr "" #. translators: preprocessor directive name, #. translators: the second a page name, the #. translators: third a number. -#: ../IkiWiki.pm:558 +#: ../IkiWiki.pm:560 #, perl-format msgid "%s preprocessing loop detected on %s at depth %i" msgstr "" -- cgit v1.2.3