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

Comparing COMP/SCRAM/src/BuildSystem/Tool.pm (file contents):
Revision 1.1.2.3 by williamc, Tue Apr 11 08:58:07 2000 UTC vs.
Revision 1.1.2.5 by williamc, Thu Apr 20 11:32:26 2000 UTC

# Line 25 | Line 25
25   # dependencies()   : return a list of dependency objects
26   # store(location)   : Save object to given file
27   # restore(location) : Restore object from specified file
28 + # reset()           : Clean out all the features
29  
30   package BuildSystem::Tool;
31   require 5.004;
# Line 99 | Line 100 | sub setfeature {
100          @{$self->{features}{$name}}=@value;
101   }
102  
103 + sub reset {
104 +        my $self=shift;
105 +        undef $self->{features};
106 +        undef $self->{'features_ordered'};
107 +        undef $self->{reqobjs};
108 +        undef $self->{requireposition};
109 + }
110  
111   sub _newfeature {
112          my $self=shift;
# Line 174 | Line 182 | sub store {
182                                  $!."\n";
183          print $fh "name:".$self->name().":_sys\n";
184          print $fh "version:".$self->version().":_sys\n";
185 +        print $fh "url:".$self->url().":_sys\n";
186          foreach $f ( $self->features()) {
187            foreach $val ( $self->getfeature($f) ) {
188             print $fh $f.":".$val.":".$self->type($f)."\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines