Skip to content

Commit 2ba12cd

Browse files
author
jan.nijtmans
committed
Indenting in testcases. Always use tabs in stead of 8 spaces
1 parent b2ccc20 commit 2ba12cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+13492
-13492
lines changed

library/install.tcl

+25-25
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ proc ::practcl::_pkgindex_directory {path} {
4040
close $fin
4141
# Look for a teapot style Package statement
4242
foreach line [split $dat \n] {
43-
set line [string trim $line]
44-
if { [string range $line 0 9] != "# Package " } continue
45-
set package [lindex $line 2]
46-
set version [lindex $line 3]
47-
break
43+
set line [string trim $line]
44+
if { [string range $line 0 9] != "# Package " } continue
45+
set package [lindex $line 2]
46+
set version [lindex $line 3]
47+
break
4848
}
4949
# Look for a package provide statement
5050
foreach line [split $dat \n] {
51-
set line [string trim $line]
52-
if { [string range $line 0 14] != "package provide" } continue
53-
set package [lindex $line 2]
54-
set version [lindex $line 3]
55-
break
51+
set line [string trim $line]
52+
if { [string range $line 0 14] != "package provide" } continue
53+
set package [lindex $line 2]
54+
set version [lindex $line 3]
55+
break
5656
}
5757
append buffer "package ifneeded $package $version \[list source \[file join \$dir [file tail $file]\]\]" \n
5858
}
@@ -66,14 +66,14 @@ proc ::practcl::_pkgindex_directory {path} {
6666
set fname [file rootname [file tail $file]]
6767
# Look for a package provide statement
6868
foreach line [split $dat \n] {
69-
set line [string trim $line]
70-
if { [string range $line 0 14] != "package provide" } continue
71-
set package [lindex $line 2]
72-
set version [lindex $line 3]
73-
if {[string index $package 0] in "\$ \[ @"} continue
74-
if {[string index $version 0] in "\$ \[ @"} continue
75-
append buffer "package ifneeded $package $version \[list source \[file join \$dir [file tail $file]\]\]" \n
76-
break
69+
set line [string trim $line]
70+
if { [string range $line 0 14] != "package provide" } continue
71+
set package [lindex $line 2]
72+
set version [lindex $line 3]
73+
if {[string index $package 0] in "\$ \[ @"} continue
74+
if {[string index $version 0] in "\$ \[ @"} continue
75+
append buffer "package ifneeded $package $version \[list source \[file join \$dir [file tail $file]\]\]" \n
76+
break
7777
}
7878
}
7979
return $buffer
@@ -149,8 +149,8 @@ lappend ::PATHSTACK $dir
149149
# Build a list of all of the paths
150150
if {[llength $paths]} {
151151
foreach path $paths {
152-
if {$path eq $base} continue
153-
set path_indexed($path) 0
152+
if {$path eq $base} continue
153+
set path_indexed($path) 0
154154
}
155155
} else {
156156
puts [list WARNING: NO PATHS FOUND IN $base]
@@ -172,9 +172,9 @@ if {![file exists $pkginstall]} {
172172
set thisdir [file_relative $base $path]
173173
set idxbuf [::practcl::_pkgindex_directory $path]
174174
if {[string length $idxbuf]} {
175-
incr path_indexed($path)
176-
append buffer "set dir \[set PKGDIR \[file join \[lindex \$::PATHSTACK end\] $thisdir\]\]" \n
177-
append buffer [string map {$dir $PKGDIR} [string trimright $idxbuf]] \n
175+
incr path_indexed($path)
176+
append buffer "set dir \[set PKGDIR \[file join \[lindex \$::PATHSTACK end\] $thisdir\]\]" \n
177+
append buffer [string map {$dir $PKGDIR} [string trimright $idxbuf]] \n
178178
}
179179
}
180180
}
@@ -202,9 +202,9 @@ proc ::practcl::installDir {d1 d2} {
202202
} elseif {[file isfile $f]} {
203203
file copy -force $f [file join $d2 $ftail]
204204
if {$::tcl_platform(platform) eq {unix}} {
205-
file attributes [file join $d2 $ftail] -permissions 0o644
205+
file attributes [file join $d2 $ftail] -permissions 0o644
206206
} else {
207-
file attributes [file join $d2 $ftail] -readonly 1
207+
file attributes [file join $d2 $ftail] -readonly 1
208208
}
209209
}
210210
}

0 commit comments

Comments
 (0)