Anonymous committed 2162306

git-gui: Gracefully fall back to if msgfmt --tcl fails

Mac OS X Tiger may have a msgfmt available but it doesn't understand
how to implement --tcl. Falling back to on such systems
is a reasonable behavior.

Signed-off-by: Shawn O. Pearce <>

Comments (0)

Files changed (1)

 	ifeq ($(shell $(MSGFMT) >/dev/null 2>&1 || echo $$?),127)
 		MSGFMT := $(TCL_PATH) po/
+	ifeq (msgfmt,$(MSGFMT))
+	ifeq ($(shell $(MSGFMT) --tcl -l C -d . /dev/null 2>/dev/null || echo $?),1)
+		MSGFMT := $(TCL_PATH) po/
+	endif
+	endif
 msgsdir     = $(gg_libdir)/msgs