summaryrefslogtreecommitdiff
path: root/systems/texlive/tlnet/tlpkg/tltcl/lib/tdbc1.1.3/pkgIndex.tcl
blob: d8c2515c3daca1004f9fcdc93803ba98017c6318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- tcl -*-
# Tcl package index file, version 1.1
#
# Make sure that TDBC is running in a compatible version of Tcl, and
# that TclOO is available.

if {![package vsatisfies [package provide Tcl] 8.6-]} {
    return
}
apply {{dir} {
    set libraryfile [file join $dir tdbc.tcl]
    if {![file exists $libraryfile] && [info exists ::env(TDBC_LIBRARY)]} {
	set libraryfile [file join $::env(TDBC_LIBRARY) tdbc.tcl]
    }
    if {[package vsatisfies [package provide Tcl] 9.0-]} {
	package ifneeded tdbc 1.1.3 \
		"package require TclOO;\
		[list load [file join $dir tcl9tdbc113.dll] [string totitle tdbc]]\;\
		[list source $libraryfile]"
    } else {
	package ifneeded tdbc 1.1.3 \
		"package require TclOO;\
		[list load [file join $dir tdbc113.dll] [string totitle tdbc]]\;\
		[list source $libraryfile]"
    }
}} $dir