From: Maurice L. <mj...@ga...> - 2002-09-25 07:45:33
|
The changes I've just committed enable easy loading of all three kinds, from both the tmp/ dir and the install tree. I've given the prescription for the tmp/ dir only; in the install tree you must: - change the auto_path setting appropriately (or use a tclsh/wish under the same $prefix) - first cd to the appropriate examples/xxx dir. Under plplot/tmp/: tclsh lappend auto_path . package require Pltcl plinit source tcldemos.tcl 1 2 ... wish lappend auto_path . package require Pltk source tkdemos.tcl 1 2 ... wish lappend auto_path . package require Plplotter source runAllDemos.tcl <control from gui> The way this is done is as follows. Since there are 3 ways of loading, there are 3 pkgIndex.tcl.in files, one for each dir under bindings/. They are very similar but have slightly different parameters, and should be easy enough to understand & modify. I gave them the ".in" extension to distinguish them from ordinary tcl files -- I don't want them in the tclIndex or being installed with the others. Rather, they are concatenated to get the real pkgIndex.tcl file. So this is done during configure to get the pkgIndex.tcl under tmp/, and again during install to get the one under $prefix/lib/plplot$version/. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |