Changeset 9811391 in tol
- Timestamp:
- Mar 14, 2012, 10:33:46 AM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- b10b2a7
- Parents:
- 5b6de6a
- Location:
- toltcl
- Files:
-
- 2 edited
-
pkgIndex.tcl (modified) (1 diff)
-
pkgIndex.tcl.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
toltcl/pkgIndex.tcl
r5b6de6a r9811391 3 3 proc LoadToltcl { version dir } { 4 4 global tcl_platform 5 6 set suffix [info sharedlibextension] 7 if {$tcl_platform(platform) eq "unix"} { 8 set name libtoltcl${version}[info sharedlibextension] 9 } else { 10 set name toltcl.dll 5 6 set _version [ string map [ list "." "" ] $version ] 7 if {[info exist ::env(USE_TOLTCL_$_version)]} { 8 puts "requested to load Toltcl from $::env(USE_TOLTCL_$_version)" 9 load $::env(USE_TOLTCL_$_version) 10 } else { 11 set suffix [info sharedlibextension] 12 if {$tcl_platform(platform) eq "unix"} { 13 set name libtoltcl${version}[info sharedlibextension] 14 } else { 15 set name toltcl.dll 16 } 17 load [file join $dir $name] Toltcl 11 18 } 12 load [file join $dir $name] Toltcl13 19 } 14 20 -
toltcl/pkgIndex.tcl.in
r5b6de6a r9811391 3 3 proc LoadToltcl { version dir } { 4 4 global tcl_platform 5 6 set suffix [info sharedlibextension] 7 if {$tcl_platform(platform) eq "unix"} { 8 set name libtoltcl${version}[info sharedlibextension] 9 } else { 10 set name toltcl.dll 5 6 set _version [ string map [ list "." "" ] $version ] 7 if {[info exist ::env(USE_TOLTCL_$_version)]} { 8 puts "requested to load Toltcl from $::env(USE_TOLTCL_$_version)" 9 load $::env(USE_TOLTCL_$_version) 10 } else { 11 set suffix [info sharedlibextension] 12 if {$tcl_platform(platform) eq "unix"} { 13 set name libtoltcl${version}[info sharedlibextension] 14 } else { 15 set name toltcl.dll 16 } 17 load [file join $dir $name] Toltcl 11 18 } 12 load [file join $dir $name] Toltcl13 19 } 14 20 15 21 package ifneeded Toltcl @PACKAGE_VERSION@ \ 16 22 [ string map [list %d $dir] { 17 LoadToltcl @PACKAGE_VERSION@ %d18 source [ file join %dtoltcl.tcl ]23 LoadToltcl @PACKAGE_VERSION@ {%d} 24 source [ file join {%d} toltcl.tcl ] 19 25 } ] 20 26
Note: See TracChangeset
for help on using the changeset viewer.
