Ignore:
Timestamp:
Jun 8, 2008 6:24:34 PM (16 years ago)
Author:
gah
Message:

Massive changes: New directory/file layout

Location:
trunk/lang
Files:
1 added
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/lang/tcl/pkgIndex.tcl.in

    r527 r1018  
    1 # this file identifies Rappture as a Tcl package
    2 package ifneeded Rappture @PACKAGE_VERSION@ [list source [file join $dir init.tcl]]
    3 namespace eval Rappture {}
    4 set Rappture::installdir [file join $dir]
    5 if {"." == $Rappture::installdir} {
    6         set installdir [pwd]
    7 }
     1package ifneeded Rappture @PACKAGE_VERSION@ [format {
     2    set dir "%s"
     3    set version @PACKAGE_VERSION@
     4    lappend auto_path [file join $dir scripts]
     5    namespace eval Rappture {
     6        variable version $version
     7        variable installdir [file normalize $dir]
     8    }
     9    namespace eval Rappture::LibraryObj {
     10        #empty
     11    }
     12    set ext [info sharedlibextension]
     13    load [file join $dir "Rappture${version}${ext}"]
     14    package provide Rappture $version
     15} $dir]
Note: See TracChangeset for help on using the changeset viewer.