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

Comparing COMP/SCRAM/src/BuildSetup.pm (file contents):
Revision 1.5 by williamc, Thu Apr 1 12:38:49 1999 UTC vs.
Revision 1.5.2.2 by williamc, Mon Jun 21 13:24:25 1999 UTC

# Line 19 | Line 19 | AddDir::adddir($ENV{INTwork}."/".$THISDI
19  
20   GetClass($THISDIR);
21   #print "Class = $Class\n";
22 + #print "ClassDir = $ClassDir\n";
23   if ( grep /none/i , @BuildFile::groups) {
24          print "Nothing to be done - empty group\n";
25          exit
# Line 65 | Line 66 | $ENV{DefaultBuildFile}=$DefaultBuildFile
66  
67   chdir $fullworkdir || die "Unable to enter working directory $!";
68  
69 + # Set up some other useful variables fo the Build
70 + # list of directories available
71 + opendir IDR, "$ENV{LOCALTOP}/$THISDIR";
72 + @allfiles= grep !/^\.\.?$/, readdir IDR;
73 + foreach $file ( @allfiles ) {
74 +   if ( -d "$ENV{LOCALTOP}/$THISDIR/$file" ) { # only add if its a directory
75 +        $ENV{SCRAM_AVAILDIRS}=$ENV{SCRAM_AVAILDIRS}." ".$file;
76 +   }
77 +   else {
78 +        $ENV{SCRAM_AVAILFILES}=$ENV{SCRAM_AVAILFILES}." ".$file;
79 +   }
80 + }
81 +
82 +
83   # If not specified default to the class name target
84   if ( $#Targets == -1 ) {
85          $Targets[0]=$Class

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines