[PATCH/RFC v3 5/7] Makefile: Override --keyword= for all languages
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Jun 1, 2010, 23:39 UTC
- Message-ID
- <1275435597-4017-6-git-send-email-avarab@gmail.com>
- In-Reply-To
- <1275173125-21010-1-git-send-email-avarab@gmail.com>
By default xgettext will supply a default list of keywords depending on the --language parameter. Disable this in favor of supplying a list of keywords manually.
This reduced the surface area for potential bugs. --- Makefile | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile index 40eb1a2..62b8279 100644 --- a/Makefile +++ b/Makefile @@ -1884,9 +1884,9 @@ cscope: $(FIND) . -name '*.[hcS]' -print | xargs cscope -b pot: - $(XGETTEXT) --keyword=_ --output=po/git.pot --language=C $(C_OBJ:o=c) - $(XGETTEXT) --join-existing --output=po/git.pot --language=Shell $(SCRIPT_SH) - $(XGETTEXT) --join-existing --output=po/git.pot --language=Perl $(SCRIPT_PERL) + $(XGETTEXT) --keyword= --keyword=_ --output=po/git.pot --language=C $(C_OBJ:o=c) + $(XGETTEXT) --join-existing --keyword= --keyword=gettext --output=po/git.pot --language=Shell $(SCRIPT_SH) + $(XGETTEXT) --join-existing --keyword= --keyword=gettext --output=po/git.pot --language=Perl $(SCRIPT_PERL) POFILES := $(wildcard po/*.po) MOFILES := $(patsubst po/%.po,share/locale/%/LC_MESSAGES/git.mo,$(POFILES))
-- 1.7.1.248.gb7713.dirty