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: I519fa960e1864d3156cd7f96b479404f2e374ac9
diff --git a/wscript b/wscript
index 302678f..a9b38da 100644
--- a/wscript
+++ b/wscript
@@ -160,7 +160,7 @@
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()
@@ -177,7 +177,7 @@
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)