Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Added run target and improved debug resource. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
93e11f9679af63086aff7bc26c7c4605 |
User & Date: | peter 2011-11-01 21:06:06.965 |
Context
2011-11-01
| ||
22:10 | Added screenshot of dir diff. check-in: ede44a16d6 user: peter tags: trunk | |
21:06 | Added run target and improved debug resource. check-in: 93e11f9679 user: peter tags: trunk | |
21:05 | Fixed bug where copy button in directory diff picked the wrong file. check-in: 861a21437b user: peter tags: trunk | |
Changes
Changes to Makefile.
︙ | ︙ | |||
117 118 119 120 121 122 123 124 125 126 127 128 129 130 | check: eskil_h.syntax @echo Checking... @for i in $(SRCFILES); do $(NAGELFAR) $(NAGELFARFLAGS) eskil_h.syntax $$i ; done test: @./tests/all.tcl $(TESTFLAGS) #---------------------------------------------------------------- # Coverage #---------------------------------------------------------------- # Source files for code coverage COVFILES = eskil.vfs/main.tcl eskil.vfs/src/rev.tcl eskil.vfs/src/eskil.tcl eskil.vfs/src/merge.tcl IFILES = $(COVFILES:.tcl=.tcl_i) | > > > | 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | check: eskil_h.syntax @echo Checking... @for i in $(SRCFILES); do $(NAGELFAR) $(NAGELFARFLAGS) eskil_h.syntax $$i ; done test: @./tests/all.tcl $(TESTFLAGS) run: $(TCLKIT_LINUX) eskil.vfs/main.tcl #---------------------------------------------------------------- # Coverage #---------------------------------------------------------------- # Source files for code coverage COVFILES = eskil.vfs/main.tcl eskil.vfs/src/rev.tcl eskil.vfs/src/eskil.tcl eskil.vfs/src/merge.tcl IFILES = $(COVFILES:.tcl=.tcl_i) |
︙ | ︙ |
Changes to src/eskil.tcl.
︙ | ︙ | |||
33 34 35 36 37 38 39 | # Stop Tk from meddling with the command line by copying it first. set ::eskil(argv) $::argv set ::eskil(argc) $::argc set ::argv {} set ::argc 0 set ::eskil(debug) 0 | | | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | # Stop Tk from meddling with the command line by copying it first. set ::eskil(argv) $::argv set ::eskil(argc) $::argc set ::argv {} set ::argc 0 set ::eskil(debug) 0 set ::eskil(diffver) "Version 2.6+ 2011-11-01" set ::eskil(thisScript) [file join [pwd] [info script]] namespace import tcl::mathop::+ namespace import tcl::mathop::- namespace import tcl::mathop::* namespace import tcl::mathop::/ |
︙ | ︙ | |||
68 69 70 71 72 73 74 | while {[file type $tmplink] eq "link"} { set tmplink [file readlink $tmplink] set tmplink [file normalize [file join $::eskil(thisDir) $tmplink]] set ::eskil(thisDir) [file dirname $tmplink] } # Get all other source files | | < < < < < < < < < < < | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | while {[file type $tmplink] eq "link"} { set tmplink [file readlink $tmplink] set tmplink [file normalize [file join $::eskil(thisDir) $tmplink]] set ::eskil(thisDir) [file dirname $tmplink] } # Get all other source files InitReSource # Diff functionality is in the DiffUtil package. package require DiffUtil # Help DiffUtil to find a diff executable, if needed catch {DiffUtil::LocateDiffExe $::eskil(thisScript)} # Figure out a place to store temporary files. |
︙ | ︙ | |||
185 186 187 188 189 190 191 192 193 194 195 196 197 198 | # Create a double up arrow set ih [image height $::img(up)] set iw [image width $::img(up)] set ::img(upup) [image create photo -height $ih -width [expr {2 * $iw}]] $::img(upup) copy $::img(up) -to 0 0 [expr {2 * $iw - 1}] [expr {$ih - 1}] } # Debug function to be able to reread the source even when wrapped in a kit. proc EskilRereadSource {} { set this $::eskil(thisScript) # FIXA: Better detection of starkit? # Maybe look at ::starkit::topdir ? | > > > > > > > > > > > > > > > > | 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | # Create a double up arrow set ih [image height $::img(up)] set iw [image width $::img(up)] set ::img(upup) [image create photo -height $ih -width [expr {2 * $iw}]] $::img(upup) copy $::img(up) -to 0 0 [expr {2 * $iw - 1}] [expr {$ih - 1}] } proc InitReSource {} { # Get all other source files source $::eskil(thisDir)/clip.tcl source $::eskil(thisDir)/compare.tcl source $::eskil(thisDir)/map.tcl source $::eskil(thisDir)/merge.tcl source $::eskil(thisDir)/registry.tcl source $::eskil(thisDir)/dirdiff.tcl source $::eskil(thisDir)/help.tcl source $::eskil(thisDir)/plugin.tcl source $::eskil(thisDir)/printobj.tcl source $::eskil(thisDir)/print.tcl source $::eskil(thisDir)/rev.tcl source $::eskil(thisDir)/debug.tcl } # Debug function to be able to reread the source even when wrapped in a kit. proc EskilRereadSource {} { set this $::eskil(thisScript) # FIXA: Better detection of starkit? # Maybe look at ::starkit::topdir ? |
︙ | ︙ | |||
211 212 213 214 215 216 217 218 219 220 221 222 223 224 | if {[file readable $src]} { set this $src } } } puts "Resourcing $this" uplevel \#0 [list source $this] } # This function is called when a toplevel is closed. # If it is the last remaining toplevel, the application quits. # If top = "all" it means quit. # If eskil is embedded, this should be used to close an eskil toplevel. proc cleanupAndExit {top} { | > > | 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 | if {[file readable $src]} { set this $src } } } puts "Resourcing $this" uplevel \#0 [list source $this] # Get all other source files InitReSource } # This function is called when a toplevel is closed. # If it is the last remaining toplevel, the application quits. # If top = "all" it means quit. # If eskil is embedded, this should be used to close an eskil toplevel. proc cleanupAndExit {top} { |
︙ | ︙ |