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.3 by williamc, Tue Mar 2 10:58:07 1999 UTC vs.
Revision 1.5.2.3 by williamc, Thu Aug 19 09:13:51 1999 UTC

# Line 18 | Line 18 | chdir $ENV{LOCALTOP};
18   AddDir::adddir($ENV{INTwork}."/".$THISDIR);
19  
20   GetClass($THISDIR);
21 < print "Class = $Class\n";
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 61 | Line 62 | if ( $DefaultBuildFile eq "" ) {
62   }
63  
64   $ENV{ClassDir}=$ClassDir;
65 + $ENV{Class}=$Class;
66   $ENV{DefaultBuildFile}=$DefaultBuildFile;
67  
68   chdir $fullworkdir || die "Unable to enter working directory $!";
69  
70 + # Set up some other useful variables fo the Build
71 + # list of directories available
72 + opendir IDR, "$ENV{LOCALTOP}/$THISDIR";
73 + @allfiles= grep !/^\.\.?$/, readdir IDR;
74 + foreach $file ( @allfiles ) {
75 +   if ( -d "$ENV{LOCALTOP}/$THISDIR/$file" ) { # only add if its a directory
76 +        $ENV{SCRAM_AVAILDIRS}=$ENV{SCRAM_AVAILDIRS}." ".$file;
77 +   }
78 +   else {
79 +        $ENV{SCRAM_AVAILFILES}=$ENV{SCRAM_AVAILFILES}." ".$file;
80 +   }
81 + }
82 +
83 +
84   # If not specified default to the class name target
85   if ( $#Targets == -1 ) {
86          $Targets[0]=$Class
87   }
88   $ENV{DefaultMakefile}="$ENV{TOOL_HOME}/basics.mk";
89 < system("gmake","-j 1","-f","$ENV{DefaultMakefile}","-I$ENV{TOOL_HOME}",@Targets);
89 > system("gmake","--no-print-directory","-r","-j 1","-f","$ENV{DefaultMakefile}","-I$ENV{TOOL_HOME}",@Targets);
90   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines