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: I7f8dd4703c76e833797135b980bbcc6c2e97bcef
This commit is contained in:
Alexander Afanasyev authored and Davide Pesavento committed 2020-06-01 18:55:17 -04:00
1 parent dbee9bf49a
commit 675d6fb210
2 files changed
+3 -3

No files matched your search

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