- Accomodate the fact that Cygwin's os.path.normcase() lies about
the underlying system being case-sensitive.
+ From David M. Cooke:
+
+ - Make the Fortran scanner case-insensitive for the INCLUDE string.
+
From Charles Crain:
- If no version of MSVC is detected but the tool is specified,
scanner = SCons.Scanner.Classic("FortranScan",
[".f", ".F", ".for", ".FOR"],
"F77PATH",
- "INCLUDE[ \t]+'([\\w./\\\\]+)'",
+ "(?i)INCLUDE[ \t]+'([\\w./\\\\]+)'",
fs = fs)
return scanner
test.write('fff1.f',"""
PROGRAM FOO
INCLUDE 'f1.f'
- INCLUDE 'f2.f'
+ include 'f2.f'
STOP
END
""")
test.write('fff2.f',"""
PROGRAM FOO
INCLUDE 'f2.f'
- INCLUDE 'd1/f2.f'
+ include 'd1/f2.f'
INCLUDE 'd2/f2.f'
STOP
END
r"""
PROGRAM PROG
PRINT *, 'subdir/prog.f'
- INCLUDE 'foo.f'
+ include 'foo.f'
STOP
END
""")