summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 494d3b8)
raw | patch | inline | side by side (parent: 494d3b8)
author | Paul Mackerras <paulus@samba.org> | |
Fri, 14 Mar 2008 09:24:31 +0000 (20:24 +1100) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Fri, 14 Mar 2008 09:24:31 +0000 (20:24 +1100) |
This is a similar change to that submitted by Junio C Hamano for
git-gui. It tests whether the msgfmt command can be run successfully
with --tcl, -l and -d, and if not, falls back to using po/po2msg.sh.
Signed-off-by: Paul Mackerras <paulus@samba.org>
git-gui. It tests whether the msgfmt command can be run successfully
with --tcl, -l and -d, and if not, falls back to using po/po2msg.sh.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index ae2b80b1083c18c6b0a15959fee304b6c43b3792..f90dfabffa894741f500e513d5380c7752d0195c 100644 (file)
--- a/Makefile
+++ b/Makefile
msgsdir ?= $(gitk_libdir)/msgs
msgsdir_SQ = $(subst ','\'',$(msgsdir))
+TCL_PATH ?= tclsh
TCLTK_PATH ?= wish
INSTALL ?= install
RM ?= rm -f
MSGFMT ?= $(TCL_PATH) po/po2msg.sh
else
MSGFMT ?= msgfmt
+ ifneq ($(shell $(MSGFMT) --tcl -l C -d . /dev/null 2>/dev/null; echo $$?),0)
+ MSGFMT := $(TCL_PATH) po/po2msg.sh
+ endif
endif
PO_TEMPLATE = po/gitk.pot