git-gui: Reorder msgfmt command-line arguments
authorbrian m. carlson <sandals@crustytoothpaste.ath.cx>
Mon, 3 Dec 2007 01:26:33 +0000 (01:26 +0000)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 3 Dec 2007 03:49:36 +0000 (22:49 -0500)
Any program using getopt or getopt_long will stop processing options
once a non-option argument has been encountered, if POSIXLY_CORRECT is
set. Therefore, reorder the command-line arguments to put options
first, so that the msgfmt call works in this scenario.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.ath.cx>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Makefile
index e8603192788fb0d8c83ff5ad33eb947cd77252b4..4ce466302962e468d54ec3d33d3e12b4e1973c9a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -212,7 +212,7 @@ $(PO_TEMPLATE): $(SCRIPT_SH) $(ALL_LIBFILES)
 update-po:: $(PO_TEMPLATE)
        $(foreach p, $(ALL_POFILES), echo Updating $p ; msgmerge -U $p $(PO_TEMPLATE) ; )
 $(ALL_MSGFILES): %.msg : %.po
-       $(QUIET_MSGFMT0)$(MSGFMT) --statistics --tcl $< -l $(basename $(notdir $<)) -d $(dir $@) $(QUIET_MSGFMT1)
+       $(QUIET_MSGFMT0)$(MSGFMT) --statistics --tcl -l $(basename $(notdir $<)) -d $(dir $@) $< $(QUIET_MSGFMT1)
 
 lib/tclIndex: $(ALL_LIBFILES) GIT-GUI-VARS
        $(QUIET_INDEX)if echo \