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.1.2.3 by williamc, Fri Aug 11 10:54:14 2000 UTC vs.
Revision 1.1.2.5 by williamc, Mon Aug 14 15:36:07 2000 UTC

# Line 17 | Line 17
17   # scramprojectdb()              : return the scram project DB object
18   # areatoolbox(ConfigArea) : return the toolbox of the specified area
19   # setuptoolsinarea($area[,$toolname[,$toolversion[,toolfile]) : setup
20 + # arch()                : get/set the architecture string
21  
22   package Scram::ScramFunctions;
23   use URL::URLcache;
# Line 47 | Line 48 | sub project {
48          require Configuration::BootStrapProject;
49          my $bs=Configuration::BootStrapProject->
50                          new($self->globalcache(),$installarea);
51 +        $self->verbose("BootStrapping $url");
52          my $area=$bs->boot($url,$areaname);
53 +        $area->archname($self->arch());
54  
55          # -- download all tool description files
56          my $req=$self->arearequirements($area);
# Line 105 | Line 108 | sub satellite {
108  
109          # -- create satellite
110          my $area=$relarea->satellite($installarea,$areaname);
111 +        $area->archname($self->arch());
112  
113 <        # -- copy setup info
114 <        $relarea->copysetup($area->location());
113 >        # -- copy setup info - deprecated by toolbox copy method
114 >        #$relarea->copysetup($area->location());
115 >
116 >        # -- copy toolbox
117 >        my $rtb=$self->areatoolbox($relarea);
118 >        my $tb=$self->areatoolbox($area);
119 >        $rtb->copytools($tb);
120  
121          # -- copy configuration directory
122          if ( ! -d $area->location()."/".$area->configurationdir() ) {
# Line 204 | Line 213 | sub arearequirements {
213          return $self->{requirements}{$name};
214   }
215  
216 + sub arch {
217 +        my $self=shift;
218 +
219 +        @_?$self->{arch}=shift
220 +          :$self->{arch};
221 + }
222 +
223   # -------------- Support Routines ------------------------------
224  
225  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines