diff options
| author | nyamatongwe <unknown> | 2009-08-10 12:03:47 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2009-08-10 12:03:47 +0000 | 
| commit | 0904508e98238a1d608f7dbd27cd87aa7e475774 (patch) | |
| tree | d255320346d0eb6b52d259b7f7109a3fb6b3bedc /src/LexGen.py | |
| parent | 25b1911c0455b5a555ea7737d75f33b76a58fdb4 (diff) | |
| download | scintilla-mirror-0904508e98238a1d608f7dbd27cd87aa7e475774.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.py | 2 | 
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)  | 
