ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/BuildSystem/ToolBox.pm
(Generate patch)

Comparing COMP/SCRAM/src/BuildSystem/ToolBox.pm (file contents):
Revision 1.2 by williamc, Mon Aug 28 08:23:10 2000 UTC vs.
Revision 1.3 by williamc, Thu Sep 21 13:36:52 2000 UTC

# Line 9 | Line 9
9   #
10   # Interface
11   # ---------
12 < # new()         : A new toolbox object
12 > # new(ConfigArea,archstring)    : A new toolbox object
13   # tools()       : return a list of tools (name,version) pairs
14   # defaultversion(tool) : return the default version of the specified tool
15   # setdefault(tool,version) : set the default version of a given tool (permanant)
# Line 39 | Line 39 | sub new {
39          my $area=shift;
40          my $self={};
41          bless $self, $class;
42 +        $self->{arch}=shift;
43          $self->init($area);
44          #$self->verbosity(1);
45          return $self;
# Line 51 | Line 52 | sub init {
52          my $config=$top."/".$area->configurationdir();
53          $self->{urlhandler}=URL::URLhandler->new($area->cache());
54          $self->{toolfiledir}="$top/.SCRAM/ToolFiles";
55 <        $self->{datastore}=$top."/.SCRAM/".$ENV{SCRAM_ARCH};
55 >        $self->{datastore}=$top."/.SCRAM/".$self->{arch};
56          #$self->{datastore}=$area->archdir();
57          $self->{tooladmin}=$self->{datastore}."/admin";
58          AddDir::adddir($self->{toolfiledir});

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines