Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1640)

Unified Diff: native_client_sdk/src/build_tools/verify_filelist.py

Issue 16336017: [NaCl SDK] Make verification failures a little easier to read. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/build_tools/verify_filelist.py
diff --git a/native_client_sdk/src/build_tools/verify_filelist.py b/native_client_sdk/src/build_tools/verify_filelist.py
index 7b75e9148852f8fdc9aca4b53ca1e55499e6ba99..b97e4205ec685329bca0ae63a997b738ffc8cc8c 100755
--- a/native_client_sdk/src/build_tools/verify_filelist.py
+++ b/native_client_sdk/src/build_tools/verify_filelist.py
@@ -37,6 +37,7 @@ class Rules(object):
self.exact_filenames = set()
self.filename = filename
self.platform = platform
+ self.exe_ext = '.exe' if platform == 'win' else ''
if platform not in VALID_PLATFORMS:
raise ParseException(self.filename, 1, 'Unknown platform %s' % platform)
@@ -67,6 +68,7 @@ class Rules(object):
pattern = match.group(2)
pattern = pattern.replace('${PLATFORM}', self.platform)
+ pattern = pattern.replace('${EXE_EXT}', self.exe_ext)
if '*' in pattern:
# glob pattern

Powered by Google App Engine
This is Rietveld 408576698