+2
-3
Makefile
+2
-3
Makefile
···
8
8
msgsdir ?= $(gitk_libdir)/msgs
9
9
msgsdir_SQ = $(subst ','\'',$(msgsdir))
10
10
11
+
SHELL_PATH ?= /bin/sh
11
12
TCL_PATH ?= tclsh
12
13
TCLTK_PATH ?= wish
13
14
INSTALL ?= install
···
64
65
65
66
gitk-wish: gitk GIT-TCLTK-VARS
66
67
$(QUIET_GEN)$(RM) $@ $@+ && \
67
-
sed -e '1,3s|^exec .* "$$0"|exec $(subst |,'\|',$(TCLTK_PATH_SQ)) "$$0"|' <gitk >$@+ && \
68
-
chmod +x $@+ && \
69
-
mv -f $@+ $@
68
+
$(SHELL_PATH) ./generate-tcl.sh "$(TCLTK_PATH_SQ)" "$<" "$@"
70
69
71
70
$(PO_TEMPLATE): gitk
72
71
$(XGETTEXT) -kmc -LTcl -o $@ gitk