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

Comparing COMP/SCRAM/src/ProcessSiteFile (file contents):
Revision 1.2 by williamc, Wed Mar 3 17:04:13 1999 UTC vs.
Revision 1.5 by williamc, Thu Apr 8 11:29:21 1999 UTC

# Line 5 | Line 5
5   # version defaults by argument 3
6  
7   open (OUT, ">$ARGV[1]" );
8 open (requires, "<$ARGV[0]_reqs" );
9 while( <requires> ) {
10 print OUT $_;
11 }
12 close requirements;
8   # group stuff - prototypeonly - hardcoded in for now
9   #
10   print OUT<<ENDTEXT;
11   ifdef GROUP_G3
12   cmsim=true
13 < GEANT=true
13 > CPPFLAGS += -DCMS_BIGBIG
14 > geant=true
15   endif
16   ENDTEXT
17  
18 + open (requires, "<$ARGV[0]_reqs" );
19 + while( <requires> ) {
20 + print OUT $_;
21 + }
22 + close requirements;
23 +
24   # project defualts
25  
26   open (defaultsfile, "<$ARGV[2]" ) || die "Unable to open file $ARGV[2] $!";
# Line 27 | Line 29 | while( <defaultsfile> ) {
29          next if /^#/;
30          next if /^\s*$/;
31          ($product, $version )=split /:/;
32 +        $product=~tr[A-Z][a-z];
33   print OUT<<ENDTEXT;
34   ifdef $product
35   ${product}_V_$version=true
# Line 42 | Line 45 | while( <file> ) {
45          next if /^\s*$/;
46          ($product, $version, $type, $variable, $value, @junk)=split /:/;
47          next if ( $variable=~/\&/ );
48 +        $product=~tr[A-Z][a-z];
49   if ( ! $version=="" ) {
50          $product=$product."_V_".$version;
51   }  
# Line 58 | Line 62 | close file;
62   print OUT 'INCLUDEPATH+=$(addprefix -I,$(INCLUDE))'."\n";
63   print OUT 'LDFLAGS+=$(addprefix -L,$(LIBDIR))'."\n";
64   print OUT 'CPPFLAGS+=$(addprefix -D,$(CPPDEFINES))'."\n";
65 + print OUT 'lib+=$(extralib)'."\n";
66   print OUT 'LDLIBS+=$(addprefix -l,$(lib))'."\n";
67   print OUT 'LDLIBS+=$(addprefix -l,$(REQUIRES))'."\n";
68  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines