version 1.11, 2011/01/19 20:40:37
|
version 1.12, 2011/02/02 19:49:16
|
Line 176 if (defined($outdir) && defined($outfile |
|
Line 176 if (defined($outdir) && defined($outfile |
|
print OUTFILE "ifneq (\$(JSOC_FCOMPILER),)\n FCOMPILER = \$(JSOC_FCOMPILER)\nendif\n\n"; | print OUTFILE "ifneq (\$(JSOC_FCOMPILER),)\n FCOMPILER = \$(JSOC_FCOMPILER)\nendif\n\n"; |
| |
# Set DEFAULT values for Stanford-specific (if running at Stanford) make variables. | # Set DEFAULT values for Stanford-specific (if running at Stanford) make variables. |
if (-e "suflag.txt") |
if (-e "configsdp.txt") |
{ | { |
my($line); | my($line); |
|
my($parse); |
| |
if (open(SUFLAG, "<suflag.txt")) |
if (open(SUFLAG, "<configsdp.txt")) |
{ | { |
|
|
|
$parse = 0; |
|
|
while (defined($line = <SUFLAG>)) | while (defined($line = <SUFLAG>)) |
{ | { |
chomp($line); | chomp($line); |
if ($line !~ /^#/ && $line =~ /\S+/) |
|
|
if ($line =~ /^__LIBS__/) |
|
{ |
|
$parse = 1; |
|
next; |
|
} |
|
elsif ($parse && $line =~ /^__END__/) |
|
{ |
|
last; |
|
} |
|
|
|
if ($parse && $line !~ /^#/ && $line =~ /\S+/) |
{ | { |
print OUTFILE "$line\n"; | print OUTFILE "$line\n"; |
} | } |