ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/moreconfigure.pl
(Generate patch)

Comparing moreconfigure.pl (file contents):
Revision 1.11 by arta, Wed Jan 19 20:40:37 2011 UTC vs.
Revision 1.12 by arta, Wed Feb 2 19:49:16 2011 UTC

# Line 176 | Line 176 | if (defined($outdir) && defined($outfile
176      print OUTFILE "ifneq (\$(JSOC_FCOMPILER),)\n  FCOMPILER = \$(JSOC_FCOMPILER)\nendif\n\n";
177  
178      # Set DEFAULT values for Stanford-specific (if running at Stanford) make variables.
179 <    if (-e "suflag.txt")
179 >    if (-e "configsdp.txt")
180      {
181         my($line);
182 +       my($parse);
183  
184 <       if (open(SUFLAG, "<suflag.txt"))
184 >       if (open(SUFLAG, "<configsdp.txt"))
185         {
186 +
187 +          $parse = 0;
188 +
189            while (defined($line = <SUFLAG>))
190            {
191               chomp($line);
192 <             if ($line !~ /^#/ && $line =~ /\S+/)
192 >            
193 >             if ($line =~ /^__LIBS__/)
194 >             {
195 >                $parse = 1;
196 >                next;
197 >             }
198 >             elsif ($parse && $line =~ /^__END__/)
199 >             {
200 >                last;
201 >             }
202 >
203 >             if ($parse && $line !~ /^#/ && $line =~ /\S+/)
204               {
205                  print OUTFILE "$line\n";
206               }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines