@matheusbsbs / matheus-bagliano / commits / 21623062ab
Fork 0

git-gui: Gracefully fall back to po2msg.sh 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 po2msg.sh on such systems is a reasonable behavior. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Feb 27, 2008 at 19:29 UTC 21623062ab8e2a81dec56c8007a1d147cef1b5e2
1 file changed +5
Makefile
+5
@@ -224,6 +224,11 @@ else
224 ifeq ($(shell $(MSGFMT) >/dev/null 2>&1 || echo $$?),127)
225 MSGFMT := $(TCL_PATH) po/po2msg.sh
226 endif
227 + ifeq (msgfmt,$(MSGFMT))
228 + ifeq ($(shell $(MSGFMT) --tcl -l C -d . /dev/null 2>/dev/null || echo $?),1)
229 + MSGFMT := $(TCL_PATH) po/po2msg.sh
230 + endif
231 + endif
232 endif
233
234 msgsdir = $(gg_libdir)/msgs