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

Comparing COMP/SCRAM/src/BuildSystem/BuildSetup.pm (file contents):
Revision 1.1.2.1 by williamc, Fri Apr 7 08:12:47 2000 UTC vs.
Revision 1.1.2.2 by williamc, Wed Apr 19 14:14:32 2000 UTC

# Line 46 | Line 46 | sub _generateexternals {
46            $fout->open(">".$outfile) or die "Unable to open $outfile for output".
47                                          $!."\n";
48  
49          # -- cludge in the dependencies - need to go via toolbox really
50          my $fh=FileHandle->new();
51          open ($fh, "<$clientreq" );
52          while( <$fh> ) {
53            print $fout $_;
54          }
55          undef $fh;
56
49            # -- print out tool/ version info
50            my ($tool,$toolobj,$f,$val,$version);
51            foreach $toolpair ( $self->{toolbox}->tools() ) {
52              $tool=$$toolpair[0];
53              $version=$$toolpair[1];
54 +            # default versions
55              print $fout "ifdef $tool\n".$tool."_V_".$version."=true\nendif\n";
56              $toolobj=$self->{toolbox}->gettool($tool,$version);
57 +            # -- externals
58 +            @deps=$toolobj->getfeature("_externals");
59 +            foreach $d ( @deps ) {
60 +              print $fout "ifdef ".$tool."_V_".$version."\n $d=true\nendif\n";
61 +            }
62 +            # -- tool info
63              print $fout "ifdef ".$tool."_V_".$version."\n";
64              foreach $f ( $toolobj->features() ) {
65                foreach $val ( $toolobj->getfeature($f) ) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines