author | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 11 Sep 2007 22:57:26 +0000 (18:57 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 11 Sep 2007 22:57:26 +0000 (18:57 -0400) |
* maint:
git-gui: Don't delete send on Windows as it doesn't exist
git-gui: Don't delete send on Windows as it doesn't exist
1 | 2 | |||
---|---|---|---|---|
git-gui.sh | patch | | diff1 | | diff2 | | blob | history |
diff --cc git-gui.sh
index 36ba849cc85bc801662d26e6169b822368e8ef7f,e221d5b511dbcbed5c6142634810d98ba08e2449..afee777f1c0100f5606669d1a3372acb0a206b06
--- 1/git-gui.sh
--- 2/git-gui.sh
+++ b/git-gui.sh
exit 1
}
- rename send {} ; # What an evil concept...
+ catch {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?