Changeset 9811391 in tol for toltcl/pkgIndex.tcl


Ignore:
Timestamp:
Mar 14, 2012, 10:33:46 AM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
b10b2a7
Parents:
5b6de6a
Message:

refs #1479, pkgIndex.tcl deal with USE_TOLTCL_x environment variable

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4363 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • toltcl/pkgIndex.tcl

    r5b6de6a r9811391  
    33proc LoadToltcl { version dir } {
    44  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
    1118  }
    12   load [file join $dir $name] Toltcl
    1319}
    1420
Note: See TracChangeset for help on using the changeset viewer.