~ubuntu-branches/ubuntu/raring/ibutils/raring-proposed

« back to all changes in this revision

Viewing changes to ibdm/ibdm/pkgIndex.tcl

  • Committer: Bazaar Package Importer
  • Author(s): Benoit Mortier
  • Date: 2010-01-11 22:22:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100111222200-53kum2et5nh13rv3
Tags: upstream-1.2-OFED-1.4.2
ImportĀ upstreamĀ versionĀ 1.2-OFED-1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Main idea here is to intialize the ibnl_path
 
2
proc ibdmLoad%VERSION% {dir} {
 
3
   global ibnl_path
 
4
   global env
 
5
   # support env variable for extending the search path for
 
6
   # system definition files.
 
7
   if {[info exists env(IBADM_IBNL_PATH)]} {
 
8
      set ibnl_path "$env(IBADM_IBNL_PATH)"
 
9
   } else {
 
10
      set ibnl_path ""
 
11
   }
 
12
   puts "Loading IBDM from: $dir"
 
13
   uplevel \#0 load [file join $dir libibdm.so.%VERSION%]
 
14
        package provide ibdm %VERSION%
 
15
}
 
16
 
 
17
package ifneeded ibdm %VERSION% [list ibdmLoad%VERSION% $dir]