process-text-files.py: Fix file name matching

For some unbeknown reason, file names were compared case-invariantly
before deciding upon renaming them.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-03-16 15:02:09 +01:00
commit e1974118b5

View file

@ -227,7 +227,7 @@ class CmdReplaceCppSymbols(Cmd):
if not trunc.lower() in self.file_truncs: if not trunc.lower() in self.file_truncs:
continue continue
for patt, repl in self.replacements.iteritems(): for patt, repl in self.replacements.iteritems():
if patt.lower() == trunc.lower(): if patt == trunc:
path = dir + '/' + name path = dir + '/' + name
new_path = dir + '/' + repl + ext new_path = dir + '/' + repl + ext
assert(new_path != path) assert(new_path != path)