c64a0ad385
The Makefile only runs po/po2msg.sh using tclsh, but because the script has the usual tcl preamble starting with #!/bin/sh it can also be run directly. The Windows git-gui wrapper is usable in-place for the same reason. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
26 lines
687 B
Bash
Executable File
26 lines
687 B
Bash
Executable File
#!/bin/sh
|
|
# Tcl ignores the next line -*- tcl -*- \
|
|
exec wish "$0" -- "$@"
|
|
|
|
if { $argc >=2 && [lindex $argv 0] == "--working-dir" } {
|
|
set workdir [lindex $argv 1]
|
|
cd $workdir
|
|
if {[lindex [file split $workdir] end] eq {.git}} {
|
|
# Workaround for Explorer right click "Git GUI Here" on .git/
|
|
cd ..
|
|
}
|
|
set argv [lrange $argv 2 end]
|
|
incr argc -2
|
|
}
|
|
|
|
set basedir [file dirname \
|
|
[file dirname \
|
|
[file dirname [info script]]]]
|
|
set bindir [file join $basedir bin]
|
|
set bindir "$bindir;[file join $basedir mingw bin]"
|
|
regsub -all ";" $bindir "\\;" bindir
|
|
set env(PATH) "$bindir;$env(PATH)"
|
|
unset bindir
|
|
|
|
source [file join [file dirname [info script]] git-gui.tcl]
|