source: trunk/src/tcl/library/init.tcl.in @ 205

Last change on this file since 205 was 205, checked in by dkearney, 19 years ago

added isvalid function, but it doesnt work yet.
tested copying from one library to another
changed package name to RapptureLibrary?
adjusted related make and configure files

File size: 1.3 KB
Line 
1# ----------------------------------------------------------------------
2#  RapptureLibrary - Tcl extensions to C++ core Rappture Library
3# ----------------------------------------------------------------------
4#  This file initializes the package when it is loaded by "package
5#  require".  It loads the dynamic library and sets up autoloading
6#  for other scripts.
7# ======================================================================
8#  AUTHOR:  Derrick Kearney, Purdue University
9#  Copyright (c) 2005-2006  Purdue Research Foundation
10#
11#  See the file "license.terms" for information on usage and
12#  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13# ======================================================================
14proc RapptureLibrary_init {} {
15    global auto_path
16    global rappture_library
17
18    package require BLT
19
20    set dir [file dirname [info script]]
21
22    # set rappture_library [file join $dir scripts]
23    # lappend auto_path $rappture_library
24
25    set suffix [info sharedlibextension]
26    set library [file join $dir .. libRapptureLibrary@VERSION@${suffix}]
27    load $library
28
29    namespace eval Rappture {
30        variable version @EXACT_VERSION@
31        variable patchlevel @PATCHLEVEL@
32    }
33
34    package provide RapptureLibrary @VERSION@
35    rename RapptureLibrary_init ""
36}
37RapptureLibrary_init
Note: See TracBrowser for help on using the repository browser.