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

Comparing COMP/SCRAM/src/Scram/ScramFunctions.pm (file contents):
Revision 1.12 by sashby, Tue Jun 12 16:02:56 2001 UTC vs.
Revision 1.16 by sashby, Wed Nov 7 19:49:38 2001 UTC

# Line 86 | Line 86 | sub setuptoolsinarea {
86          my $self=shift;
87          my $area=shift;
88  
89 <        # -- initialise
89 >        # -- initialise
90 >        print "Initialising setup procedure......","\n";
91          $self->_allprojectinitsearcher();
92  
93          # -- create a new toolbox object
# Line 136 | Line 137 | sub satellite {
137          my $area=$relarea->satellite($installarea,$areaname);
138          $area->archname($self->arch());
139  
139        # -- copy setup info - deprecated by toolbox copy method
140        #$relarea->copysetup($area->location());
141
140          # -- copy toolbox
141          my $rtb=$self->areatoolbox($relarea);
142          my $tb=$self->areatoolbox($area);
# Line 241 | Line 239 | sub addareatoDB {
239          $self->scramprojectdb()->addarea($tagname,$version,$area);
240   }
241  
242 +
243 + sub removeareafromDB
244 +   {
245 +   ###############################################################
246 +   # removearefromDB()                                           #
247 +   ###############################################################
248 +   # modified : Thu Jun 14 10:46:22 2001 / SFA                   #
249 +   # params   : projectname, projectversion                      #
250 +   #          :                                                  #
251 +   #          :                                                  #
252 +   #          :                                                  #
253 +   # function : Remove project <projectname> from DB file.       #
254 +   #          :                                                  #
255 +   #          :                                                  #
256 +   ###############################################################
257 +   my $self=shift;
258 +   my $projname=shift;
259 +   my $version=shift;
260 +  
261 +   # -- Remove from the DB:
262 +   $self->scramprojectdb()->removearea($projname,$version);
263 +   }
264 +
265 +
266   sub spawnversion
267     {
268 +   ###############################################################
269 +   # spawnversion                                                #
270 +   ###############################################################
271 +   # modified : Fri Aug 10 15:42:08 2001 / SFA                   #
272 +   # params   :                                                  #
273 +   #          :                                                  #
274 +   #          :                                                  #
275 +   #          :                                                  #
276 +   # function : Check for version of scram to run, and run it.   #
277 +   #          :                                                  #
278 +   #          :                                                  #
279 +   ###############################################################
280 +
281     my $self=shift;
282     my $version=shift;
283     my $rv=0;
# Line 259 | Line 294 | sub spawnversion
294              $ENV{SCRAM_HOME}=$self->{scram_top}."/".$version;
295              $ENV{TOOL_HOME}="$ENV{SCRAM_HOME}/src";
296              $self->verbose("Spawning SCRAM version $version");
297 +            #print "######### SCRAM version control: ";
298 +            #print "ARGS: ",@_,"\n\n";
299              my $rv=system("scram", @_)/256;
300              exit $rv;
301              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines