From 6850ae776d4f16b24048c4a64e21d60149b0a9fa Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Sat, 12 Sep 2015 08:46:39 +0200 Subject: Use xgettext --no-location in make update-pot This avoid the large diff we have that is mostly caused by the line numbers changing in the po/pot files. --- doc/po/apt-doc.pot | 2 +- po/makefile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/po/apt-doc.pot b/doc/po/apt-doc.pot index d9ea5f6ad..6c0d79246 100644 --- a/doc/po/apt-doc.pot +++ b/doc/po/apt-doc.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: apt-doc 1.0.9.8\n" "Report-Msgid-Bugs-To: APT Development Team \n" -"POT-Creation-Date: 2015-04-13 07:23+0200\n" +"POT-Creation-Date: 2015-09-12 08:43+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po/makefile b/po/makefile index b239da5cc..51472196e 100644 --- a/po/makefile +++ b/po/makefile @@ -40,6 +40,8 @@ $(POTFILES) : $(PO)/%.pot : cat $(PO)/domains/$*/*.srclist > $(PO)/POTFILES_$*.in $(XGETTEXT) --default-domain=$* --directory=$(BASE) \ --add-comments --foreign --keyword=_ --keyword=N_ \ + # avoid the huge churn on each make update-pot + --no-location \ --keyword=P_:1,2 \ --files-from=$(PO)/POTFILES_$*.in -o $(PO)/domains/$*/c.pot.tmp cmp --silent $(PO)/domains/$*/c.pot.tmp $(PO)/domains/$*/c.pot || \ -- cgit v1.2.3