mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-27 20:41:58 +03:00
41 lines
1.2 KiB
Tcl
41 lines
1.2 KiB
Tcl
# -*- tcl -*-
|
|
# Tcl package index file
|
|
#
|
|
# Unless this file is named pkgIndex.tcl.in, you are probably looking
|
|
# at an automatically generated/filtered copy and should probably not
|
|
# edit it.
|
|
#
|
|
# Adapted from https://core.tcl-lang.org/tcltls
|
|
@if TEAISH_VSATISFIES_CODE
|
|
@TEAISH_VSATISFIES_CODE@
|
|
@endif
|
|
if {[package vsatisfies [package provide Tcl] 9.0-]} {
|
|
package ifneeded {@TEAISH_PKGNAME@} {@TEAISH_VERSION@} [list apply {{dir} {
|
|
@if TEAISH_ENABLE_DLL
|
|
load [file join $dir {@TEAISH_DLL9@}] @TEAISH_LOAD_PREFIX@
|
|
@endif
|
|
@if TEAISH_PKGINIT_TCL_TAIL
|
|
set initScript [file join $dir {@TEAISH_PKGINIT_TCL_TAIL@}]
|
|
if {[file exists $initScript]} {
|
|
source -encoding utf-8 $initScript
|
|
}
|
|
@endif
|
|
}} $dir]
|
|
} else {
|
|
package ifneeded {@TEAISH_PKGNAME@} {@TEAISH_VERSION@} [list apply {{dir} {
|
|
@if TEAISH_ENABLE_DLL
|
|
if {[string tolower [file extension {@TEAISH_DLL8@}]] in [list .dll .dylib .so]} {
|
|
load [file join $dir {@TEAISH_DLL8@}] @TEAISH_LOAD_PREFIX@
|
|
} else {
|
|
load {} @TEAISH_LOAD_PREFIX@
|
|
}
|
|
@endif
|
|
@if TEAISH_PKGINIT_TCL_TAIL
|
|
set initScript [file join $dir {@TEAISH_PKGINIT_TCL_TAIL@}]
|
|
if {[file exists $initScript]} {
|
|
source -encoding utf-8 $initScript
|
|
}
|
|
@endif
|
|
}} $dir]
|
|
}
|