Use a stable ordering when enumerating files.
Output the enumerated files in sorted order when running enumerate_files.py
from gyp, to prevent unnecessary buildfile churn that makes comparing
revisions noisy.
Change-Id: Ic644053d0a1cc9c986ae47fbe983221d6a62b50b
Reviewed-on: https://chromium-review.googlesource.com/187690
Tested-by: Geoff Lang <geofflang@chromium.org>
Reviewed-by: Shannon Woods <shannonwoods@chromium.org>
diff --git a/enumerate_files.py b/enumerate_files.py
index a20101d..3dc36dd 100644
--- a/enumerate_files.py
+++ b/enumerate_files.py
@@ -5,6 +5,7 @@
dirs = [ ]
types = [ ]
excludes = [ ]
+files = [ ]
# Default to accepting a list of directories first
curArray = dirs
@@ -49,5 +50,9 @@
break
if not excluded:
- print fullPath
+ files.append(fullPath)
break
+
+files.sort()
+for file in files:
+ print file