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: I5be60b42305856f7b45f3a7116c7bf0cb9082ecf
This commit is contained in:
Alexander Afanasyev
2020-05-28 22:08:01 -04:00
parent 1f237abbf1
commit 34b2b57831
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -26,4 +26,4 @@ __pycache__/
*.py[cod]
# Other
/VERSION
/VERSION.info
+2 -2
View File
@@ -312,7 +312,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()
@@ -329,7 +329,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)