Rename VERSION to VERSION.info to avoid conflicts with modern STL

On case-insensitive file systems (e.g., macOS), inclusion of the new
standard <version> header resulted in unexpected inclusion of VERSION
file.

Change-Id: I156cb3a49d3ee2139c1c830eaa8b20be00c3fb98
This commit is contained in:
Alexander Afanasyev authored and Davide Pesavento committed 2020-06-01 18:58:54 -04:00
1 parent 5653b640d4
commit 89edd8f3a9
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -29,4 +29,4 @@ __pycache__/
*.py[cod]
# Other
/VERSION
/VERSION.info
+2 -2
View File
@@ -163,7 +163,7 @@ def version(ctx):
except (OSError, subprocess.CalledProcessError):
pass
versionFile = ctx.path.find_node('VERSION')
versionFile = ctx.path.find_node('VERSION.info')
if not gotVersionFromGit and versionFile is not None:
try:
Context.g_module.VERSION = versionFile.read()
@@ -180,7 +180,7 @@ def version(ctx):
except EnvironmentError as e:
Logs.warn('%s exists but is not readable (%s)' % (versionFile, e.strerror))
else:
versionFile = ctx.path.make_node('VERSION')
versionFile = ctx.path.make_node('VERSION.info')
try:
versionFile.write(Context.g_module.VERSION)