diff options
author | dgp <dgp@users.sourceforge.net> | 2018-10-17 20:02:16 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2018-10-17 20:02:16 (GMT) |
commit | da461559312846043039c84d96a019da01f4dd06 (patch) | |
tree | 1a601db6a9ca3444d7418ec591f320756df6f58f /library/init.tcl | |
parent | 4252e1f99f58589cf3ab90f0d2fe8f83f48fd996 (diff) | |
parent | e154c5151281fbbe01ef1361f5f6980a5ec5a6d3 (diff) | |
download | tcl-da461559312846043039c84d96a019da01f4dd06.zip tcl-da461559312846043039c84d96a019da01f4dd06.tar.gz tcl-da461559312846043039c84d96a019da01f4dd06.tar.bz2 |
merge 8.7
Diffstat (limited to 'library/init.tcl')
-rw-r--r-- | library/init.tcl | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/library/init.tcl b/library/init.tcl index 530ce58..51339d0 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -6,7 +6,10 @@ # Copyright (c) 1991-1993 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. # Copyright (c) 1998-1999 Scriptics Corporation. -# Copyright (c) 2004 by Kevin B. Kenny. All rights reserved. +# Copyright (c) 2004 by Kevin B. Kenny. +# Copyright (c) 2018 by Sean Woods +# +# All rights reserved. # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. @@ -795,3 +798,20 @@ proc tcl::CopyDirectory {action src dest} { } return } +set isafe [interp issafe] +### +# Package manifest for all Tcl packages included in the /library file system +### +set isafe [interp issafe] +set dir [file dirname [info script]] +foreach {safe package version file} { + 0 http 2.9.0 {http http.tcl} + 1 msgcat 1.7.0 {msgcat msgcat.tcl} + 1 opt 0.4.7 {opt optparse.tcl} + 0 platform 1.0.14 {platform platform.tcl} + 0 platform::shell 1.1.4 {platform shell.tcl} + 1 tcltest 2.4.1 {tcltest tcltest.tcl} +} { + if {$isafe && !$safe} continue + package ifneeded $package $version [list source [file join $dir {*}$file]] +} |