]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
Makefile: don't invoke msgfmt with --statistics
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 17 Dec 2021 00:10:00 +0000 (01:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 25 Dec 2021 23:07:09 +0000 (15:07 -0800)
commit2f12b31b746c36eb0c122ce31242f7c36c639404
treee05607610749f735f0866a21c2730f4725f319e7
parente9d7761bb94f20acc98824275e317fa82436c25d
Makefile: don't invoke msgfmt with --statistics

Remove the --statistics flag that I added in 5e9637c6297 (i18n: add
infrastructure for translating Git with gettext, 2011-11-18). Our
Makefile output is good about reducing verbosity by default, except in
this case:

    $ rm -rf po/build/locale/e*; time make -j $(nproc) all
        SUBDIR templates
        MKDIR -p po/build/locale/el/LC_MESSAGES
        MSGFMT po/build/locale/el/LC_MESSAGES/git.mo
        MKDIR -p po/build/locale/es/LC_MESSAGES
        MSGFMT po/build/locale/es/LC_MESSAGES/git.mo
    1038 translated messages, 3325 untranslated messages.
    5230 translated messages.

I didn't have any good reason for using --statistics at the time other
than ad-hoc eyeballing of the output. We don't need to spew out
exactly how many messages we've got translated every time. Now we'll
instead emit:

    $ rm -rf po/build/locale/e*; time make -j $(nproc) all
        SUBDIR templates
        MKDIR -p po/build/locale/el/LC_MESSAGES
        MSGFMT po/build/locale/el/LC_MESSAGES/git.mo
        MKDIR -p po/build/locale/es/LC_MESSAGES
        MSGFMT po/build/locale/es/LC_MESSAGES/git.mo

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile