aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexGen.py
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-08-10 12:03:47 +0000
committernyamatongwe <devnull@localhost>2009-08-10 12:03:47 +0000
commit5c624bed899900bf64974ee7cd9f189f5456ef5c (patch)
treed255320346d0eb6b52d259b7f7109a3fb6b3bedc /src/LexGen.py
parent37708baf9afcc0ffa21034401183ff2cd226b6c3 (diff)
downloadscintilla-mirror-5c624bed899900bf64974ee7cd9f189f5456ef5c.tar.gz
Added sorting of file names so that outputs will be stable even when
glob doesn't return sorted results which happens on Linux.
Diffstat (limited to 'src/LexGen.py')
-rw-r--r--src/LexGen.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/LexGen.py b/src/LexGen.py
index 5b5f0e7c6..571332e6e 100644
--- a/src/LexGen.py
+++ b/src/LexGen.py
@@ -231,6 +231,7 @@ def RegenerateAll():
# Find all the lexer source code files
lexFilePaths = glob.glob(root + "scintilla/src/Lex*.cxx")
+ sortListInsensitive(lexFilePaths)
lexFiles = [os.path.basename(f)[:-4] for f in lexFilePaths]
print(lexFiles)
lexerModules = []
@@ -261,6 +262,7 @@ def RegenerateAll():
otherProps = ["abbrev.properties", "Embedded.properties", "SciTEGlobal.properties", "SciTE.properties"]
if os.path.exists(root + "scite"):
propFilePaths = glob.glob(root + "scite/src/*.properties")
+ sortListInsensitive(propFilePaths)
propFiles = [os.path.basename(f) for f in propFilePaths if os.path.basename(f) not in otherProps]
sortListInsensitive(propFiles)
print(propFiles)