From 298c4355c3ea7aabe117f425d6e55aed07c84205 Mon Sep 17 00:00:00 2001 From: Alexander Afanasyev Date: Sun, 31 May 2020 15:40:28 -0400 Subject: [PATCH] Rename VERSION to VERSION.info to avoid conflicts with modern STL On case-insensitive file systems (e.g., macOS), inclusion of the new standard header resulted in unexpected inclusion of VERSION file. Change-Id: Ib08d8e9efa0f6ed0cee6843b818b773485dc73d8 --- .gitignore | 2 +- wscript | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 608c272..8850587 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,4 @@ __pycache__/ *.py[cod] # Other -/VERSION +/VERSION.info diff --git a/wscript b/wscript index 772f89c..3a20b77 100644 --- a/wscript +++ b/wscript @@ -114,7 +114,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() @@ -131,7 +131,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)