author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 9 Sep 2007 09:03:56 +0000 (05:03 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 9 Sep 2007 09:04:43 +0000 (05:04 -0400) |
* maint:
git-gui: Avoid use of libdir in Makefile
git-gui: Disable Tk send in all git-gui sessions
git-gui: lib/index.tcl: handle files with % in the filename properly
git-gui: Avoid use of libdir in Makefile
git-gui: Disable Tk send in all git-gui sessions
git-gui: lib/index.tcl: handle files with % in the filename properly
1 | 2 | |||
---|---|---|---|---|
Makefile | patch | | diff1 | | diff2 | | blob | history |
git-gui.sh | patch | | diff1 | | diff2 | | blob | history |
lib/index.tcl | patch | | diff1 | | diff2 | | blob | history |
diff --cc Makefile
index df6f6b727569a0a3d5cf8e19fc3ddfacab0b8639,f11cf2676049529750c93e9584a3e89b7ac3e440..5b1ff914944a52dcc4519425562e34d6ceea3662
+++ b/Makefile
$(GITGUI_BUILT_INS): git-gui
$(QUIET_BUILT_IN)rm -f $@ && ln git-gui $@
- msgsdir ?= $(libdir)/msgs
+XGETTEXT ?= xgettext
+MSGFMT ?= msgfmt
++msgsdir = $(gg_libdir)/msgs
+msgsdir_SQ = $(subst ','\'',$(msgsdir))
+PO_TEMPLATE = po/git-gui.pot
+ALL_POFILES = $(wildcard po/*.po)
+ALL_MSGFILES = $(subst .po,.msg,$(ALL_POFILES))
+
+$(PO_TEMPLATE): $(SCRIPT_SH) $(ALL_LIBFILES)
+ $(XGETTEXT) -kmc -LTcl -o $@ $(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)
+
lib/tclIndex: $(ALL_LIBFILES)
$(QUIET_INDEX)if echo \
$(foreach p,$(PRELOAD_FILES),source $p\;) \
diff --cc git-gui.sh
index b3d447e598019eefc3f3d27029b18017a934f724,6d676097a6a3aeecfda3a752b7344dc88094956c..daab7e44bbbb35621bfff12fd7a667e997311528
--- 1/git-gui.sh
--- 2/git-gui.sh
+++ b/git-gui.sh
exit 1
}
+ rename send {} ; # What an evil concept...
+
+######################################################################
+##
+## locate our library
+
+set oguilib {@@GITGUI_LIBDIR@@}
+set oguirel {@@GITGUI_RELATIVE@@}
+if {$oguirel eq {1}} {
+ set oguilib [file dirname [file dirname [file normalize $argv0]]]
+ set oguilib [file join $oguilib share git-gui lib]
+ set oguimsg [file join $oguilib msgs]
+} elseif {[string match @@* $oguirel]} {
+ set oguilib [file join [file dirname [file normalize $argv0]] lib]
+ set oguimsg [file join [file dirname [file normalize $argv0]] po]
+} else {
+ set oguimsg [file join $oguilib msgs]
+}
+unset oguirel
+
######################################################################
##
## enable verbose loading?
diff --cc lib/index.tcl
Simple merge