]> git.ipfire.org Git - thirdparty/git.git/commit
gitk: place file name arguments after options in msgfmt call
authorJohannes Sixt <j6t@kdbg.org>
Tue, 13 May 2025 20:38:41 +0000 (22:38 +0200)
committerJohannes Sixt <j6t@kdbg.org>
Wed, 14 May 2025 15:55:11 +0000 (17:55 +0200)
commit9f27318f148f7dbf6d837caea094dbd6490b8baa
tree98a986af7098a38552a5fe4f8ac4b218786395cc
parent3fdbf184be906b5f6abb35c02842ec8ad861e8f9
gitk: place file name arguments after options in msgfmt call

The build process fails in POSIXLY_CORRECT mode:

  $ gitk@master:1005> POSIXLY_CORRECT=1 make
      * new Tcl/Tk interpreter location
      GEN gitk-wish
  Generating catalog po/zh_cn.msg
  msgfmt --statistics --tcl po/zh_cn.po -l zh_cn -d po/
  msgfmt: --tcl requires a "-l locale" specification
  Try 'msgfmt --help' for more information.
  make: *** [Makefile:76: po/zh_cn.msg] Error 1

The reason is that option arguments cannot occur after the first
non-option argument. Move the file name last.

Reported-by: Nathan Royce <nroycea+kernel@gmail.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Makefile