debuggers: import openocd-0.7.0
Initial check-in of openocd-0.7.0 as it can be downloaded from http://sourceforge.net/projects/openocd/files/openocd/0.7.0/ Any modifications will follow. Change-Id: I6949beaefd589e046395ea0cb80f4e1ab1654d55
This commit is contained in:
27
debuggers/openocd/jimtcl/initjimsh.tcl
Normal file
27
debuggers/openocd/jimtcl/initjimsh.tcl
Normal file
@ -0,0 +1,27 @@
|
||||
# This pseudo-package is loaded from jimsh to add additional
|
||||
# paths to $auto_path and to source ~/.jimrc
|
||||
|
||||
proc _jimsh_init {} {
|
||||
rename _jimsh_init {}
|
||||
|
||||
# Add to the standard auto_path
|
||||
lappend p {*}[split [env JIMLIB {}] $::tcl_platform(pathSeparator)]
|
||||
lappend p {*}$::auto_path
|
||||
lappend p [file dirname [info nameofexecutable]]
|
||||
set ::auto_path $p
|
||||
|
||||
if {$::tcl_interactive && [env HOME {}] ne ""} {
|
||||
foreach src {.jimrc jimrc.tcl} {
|
||||
if {[file exists [env HOME]/$src]} {
|
||||
uplevel #0 source [env HOME]/$src
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if {$tcl_platform(platform) eq "windows"} {
|
||||
set jim_argv0 [string map {\\ /} $jim_argv0]
|
||||
}
|
||||
|
||||
_jimsh_init
|
||||
Reference in New Issue
Block a user