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

Comparing COMP/SCRAM/src/scram (file contents):
Revision 1.3 by williamc, Mon Mar 1 11:18:31 1999 UTC vs.
Revision 1.8 by williamc, Mon Mar 22 18:01:31 1999 UTC

# Line 1 | Line 1
1 < #!/usr/local/bin/perl5 -I$ENV{SCRAM_HOME}/src
1 > #!/usr/local/bin/perl5
2   #
3   # User Interface
4   #
# Line 28 | Line 28 | sub build {
28   }
29  
30   sub project {
31 +        # process options
32 +        while ( $ARGV[0]=~"^-" ) {
33 +         if ( (shift @ARGV)=~/-d/ ) {  #installation area directory
34 +          chdir $ARGV[0];
35 +          shift @ARGV;
36 +         }
37 +        }
38          my $project=shift @ARGV;
39          my $version=shift @ARGV;
40          environmentinit();
41          use File::Copy;
42          use Utilities::AddDir;
43          
37           print "Warning : - you are entering a development zone.".
38                " Don't complain if it don't work\n";
44             use BootStrapProject;
45             # get the bootstrap files downloaded
46             BootStrapProject("$project\?\?$version");
# Line 48 | Line 53 | sub project {
53             #
54             foreach $key ( keys %ENV ) {
55                  if ( $key=~/^INT/ ) {
56 <                        adddir($ENV{$key});
56 >                        AddDir::adddir($ENV{$key});
57                  }
58             }
59 +           if ( ! -e "$ENV{LOCALTOP}/$ENV{projconfigdir}" ) {
60 +                system("cp", "-r", "$ENV{RELEASETOP}/$ENV{projconfigdir}",
61 +                                "$ENV{LOCALTOP}/$ENV{projconfigdir}");
62 +           }
63             use clientfile;
64             BuildClientFile( $ENV{SCRAM_ProjReqsDoc} );
65 +           use Cwd;
66 +           print "Installation Located at:\n".cwd()."\n";
67 +           print "Press RETURN to exit\n";
68 +           $junk=<STDIN>;
69   }
70 +
71   sub FullEnvInit {
72      environmentinit();
73      localtop();
# Line 66 | Line 80 | sub environmentinit {
80          my $value;
81  
82          $ENV{LatestBuildFile}=""; # stop recursive behaviour in make
83 <        setarch();
83 >        setarchitecture::setarch();
84          $ENV{INTwork}="tmp/$ENV{SCRAM_ARCH}";
85          $ENV{INTlib}="lib/$ENV{SCRAM_ARCH}";
86          $ENV{INTsrc}="src";
# Line 74 | Line 88 | sub environmentinit {
88          $ENV{INTlog}="logs";
89  
90          if ( ! ( exists $ENV{SCRAM_HOME}) ){
91 <         $ENV{SCRAM_HOME}="/afs/cern.ch/user/w/williamc/public/ConfigMan";
91 >         $ENV{SCRAM_HOME}="/afs/cern.ch/cms/Releases";
92           print "Warning : Environment Variable SCRAM_HOME not set.\n";
93           print "Defaulting to $ENV{SCRAM_HOME}\n";
94          }
# Line 82 | Line 96 | sub environmentinit {
96                  $ENV{SCRAM_CONFIG}="$ENV{SCRAM_HOME}/configuration";
97          }
98          if ( ! ( exists $ENV{TOOL_HOME} ) ){
99 <                $ENV{TOOL_HOME}="$ENV{SCRAM_HOME}/toolbox";
99 >                $ENV{TOOL_HOME}="$ENV{SCRAM_HOME}/src";
100          }
101          if ( ! ( exists $ENV{SCRAM_LOOKUPDB} ) ){
102                  $ENV{SCRAM_LOOKUPDB}="$ENV{SCRAM_CONFIG}/project.lookup";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines