39 |
|
'file' => 'none', |
40 |
|
'file_starttag' => \&file_start |
41 |
|
}; |
42 |
< |
$filename=urlhandler::urlhandler($url); |
42 |
> |
$filename=urlhandler::urlhandler($url); |
43 |
|
$switch=Switcher->new($BootHash, $filename); |
44 |
|
$switch->parse(); |
45 |
|
} |
46 |
|
|
47 |
< |
sub Bootlocaltop($hashref) { |
47 |
> |
sub Bootlocaltop { |
48 |
|
my $hashref=shift; |
49 |
|
use Cwd; |
50 |
|
use Utilities::AddDir; |
64 |
|
|
65 |
|
$hashref=$switch->SetupValueHash( \@vars ); |
66 |
|
Bootlocaltop($hashref); |
67 |
+ |
print "Installing Project $$hashref{'name'} ". |
68 |
+ |
"Version $$hashref{'version'}\n"; |
69 |
|
open ( ENVIRONMENT , ">$scramdir/Environment" ) || die "Unable to open ". |
70 |
|
"Environment file : $!\n"; |
71 |
|
print ENVIRONMENT 'SCRAM_PROJECTNAME='.$$hashref{'name'}."\n"; |
103 |
|
$ENV{LOCALTOP}."/".$$hashref{'dir'}; |
104 |
|
push @dirstack, $ENV{LOCALTOP}."/".$$hashref{'dir'}; |
105 |
|
$currentdir=$ENV{LOCALTOP}."/".$$hashref{'dir'}; |
106 |
+ |
if ( $switch->context('project') ) { |
107 |
+ |
print INSTALLFILE "<$name dir=$$hashref{dir}>\n"; |
108 |
+ |
} |
109 |
|
} |
110 |
|
sub config_endtag { |
111 |
+ |
my $name=shift; |
112 |
+ |
|
113 |
|
pop @dirstack; |
114 |
|
$currentdir=$dirstack[$#dirstack]; |
115 |
+ |
if ( $switch->context('project') ) { |
116 |
+ |
print INSTALLFILE "</$name>\n"; |
117 |
+ |
} |
118 |
|
} |
119 |
|
|
120 |
|
sub file_start { |
213 |
|
my $name=shift; |
214 |
|
my @vars=@_; |
215 |
|
my $hashref; |
206 |
– |
use Utilities::AddDir; |
207 |
– |
use File::Copy; |
208 |
– |
|
209 |
– |
# copy across the files in the config directory |
210 |
– |
AddDir::adddir($ENV{LOCALTOP}/$ENV{projconfigdir}); |
211 |
– |
copy "$ENV{RELEASETOP}/$ENV{projconfigdir}", |
212 |
– |
"$ENV{LOCALTOP}/$ENV{projconfigdir}"; |
216 |
|
} |
217 |
|
|
218 |
|
sub cvsrep_start { |