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

Comparing COMP/SCRAM/src/BootStrapProject.pm (file contents):
Revision 1.6 by williamc, Thu Mar 18 10:32:03 1999 UTC vs.
Revision 1.10.2.2 by williamc, Mon Aug 30 14:14:58 1999 UTC

# Line 51 | Line 51 | sub Bootlocaltop {
51  
52          $switch->checkparam($hashref, $name, "name");
53          $switch->checkparam($hashref, $name, "version");
54 <        $ENV{LOCALTOP}=&cwd."/".$$hashref{'name'}."_".$$hashref{'version'};
54 >        if ( ! defined $ENV{devareaname} ) {
55 >         my $vers=$$hashref{'version'};
56 >         $vers=~s/^$$hashref{'name'}_//;
57 >        print $vers;
58 >         $ENV{LOCALTOP}=&cwd."/".$$hashref{'name'}."_".$vers;
59 >        }
60 >        else {
61 >         $ENV{LOCALTOP}=&cwd."/".$ENV{devareaname};
62 >        }
63          $scramdir=$ENV{LOCALTOP}."/.SCRAM";
64          &AddDir::adddir($scramdir);
65          chdir $ENV{LOCALTOP};
# Line 64 | Line 72 | sub project_start {
72  
73          $hashref=$switch->SetupValueHash( \@vars );
74          Bootlocaltop($hashref);
75 +        print "Installing Project $$hashref{'name'} ".
76 +                "Version $$hashref{'version'}\n";
77          open ( ENVIRONMENT , ">$scramdir/Environment" ) || die "Unable to open ".
78                                  "Environment file : $!\n";
79          print ENVIRONMENT 'SCRAM_PROJECTNAME='.$$hashref{'name'}."\n";
# Line 96 | Line 106 | sub config_starttag {
106  
107          $hashref=$switch->SetupValueHash( \@vars );
108          $switch->checkparam($hashref, $name, "dir");
109 +        $$hashref{'dir'}=~s/`//g;
110          print ENVIRONMENT 'projconfigdir='.$$hashref{'dir'}."\n";
111          $ENV{SCRAM_BootStrapFiles}=$ENV{SCRAM_BootStrapFiles}.":".
112                  $ENV{LOCALTOP}."/".$$hashref{'dir'};
113          push @dirstack, $ENV{LOCALTOP}."/".$$hashref{'dir'};
114          $currentdir=$ENV{LOCALTOP}."/".$$hashref{'dir'};
115          if ( $switch->context('project') ) {
116 <         print INSTALLFILE "<$name name=$$hashref{dir}>\n";
116 >         print INSTALLFILE "<$name dir=$$hashref{dir}>\n";
117          }
118   }
119   sub config_endtag {
# Line 141 | Line 152 | sub reqs_start {
152          use clientfile;
153          $ENV{SCRAM_ProjReqsDoc}=
154            $currentdir."/".$$hashref{'name'};
155 +        print ENVIRONMENT 'SCRAM_ProjReqsDoc='.$ENV{SCRAM_ProjReqsDoc}."\n";
156   #       &urlhandler::urlhandler(&geturlbase."/".$$hashref{'name'},
157   #               $scramdir."/".$$hashref{'name'}) ;
158          if ( $switch->context("project") ) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines