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.1 by williamc, Mon Mar 1 10:37:53 1999 UTC vs.
Revision 1.3 by williamc, Thu Mar 18 12:53:57 1999 UTC

# Line 10 | Line 10 | open (OUT, ">$ARGV[1]" );
10   print OUT<<ENDTEXT;
11   ifdef GROUP_G3
12   cmsim=true
13 < GEANT=true
13 > geant=true
14   endif
15   ENDTEXT
16  
17 + open (requires, "<$ARGV[0]_reqs" );
18 + while( <requires> ) {
19 + print OUT $_;
20 + }
21 + close requirements;
22 +
23   # project defualts
24  
25   open (defaultsfile, "<$ARGV[2]" ) || die "Unable to open file $ARGV[2] $!";
# Line 22 | Line 28 | while( <defaultsfile> ) {
28          next if /^#/;
29          next if /^\s*$/;
30          ($product, $version )=split /:/;
31 +        $product=~tr[A-Z][a-z];
32   print OUT<<ENDTEXT;
33   ifdef $product
34   ${product}_V_$version=true
# Line 37 | Line 44 | while( <file> ) {
44          next if /^\s*$/;
45          ($product, $version, $type, $variable, $value, @junk)=split /:/;
46          next if ( $variable=~/\&/ );
47 +        $product=~tr[A-Z][a-z];
48   if ( ! $version=="" ) {
49          $product=$product."_V_".$version;
50   }  
# Line 51 | Line 59 | close file;
59  
60   # Prototype only
61   print OUT 'INCLUDEPATH+=$(addprefix -I,$(INCLUDE))'."\n";
62 < print OUT 'LIBDIR+=$(addprefix -L,$(LIBDIR))'."\n";
62 > print OUT 'LDFLAGS+=$(addprefix -L,$(LIBDIR))'."\n";
63   print OUT 'CPPFLAGS+=$(addprefix -D,$(CPPDEFINES))'."\n";
64 < print OUT 'lib+=$(addprefix -l,$(lib))'."\n";
65 < print OUT 'lib+=$(addprefix -l,$(REQUIRES))'."\n";
64 > print OUT 'LDLIBS+=$(addprefix -l,$(lib))'."\n";
65 > print OUT 'LDLIBS+=$(addprefix -l,$(REQUIRES))'."\n";
66  
67   close OUT;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines