Commit 9a7c7bf6 authored by JINMEI Tatuya's avatar JINMEI Tatuya

[1866] corrected some regexp's: make sure it matches '.' before file suffixes.

parent 463700b3
......@@ -198,11 +198,11 @@ def import_definitions(classcode2txt, typecode2txt, typeandclass):
if rdatadef_mtime < getmtime(file):
rdatadef_mtime = getmtime(file)
meta_types[type_txt] = type_code
elif re.search('\cc$', file):
elif re.search('\.cc$', file):
if rdatadef_mtime < getmtime(file):
rdatadef_mtime = getmtime(file)
class_definitions += import_classdef(class_txt, file)
elif re.search('\h$', file):
elif re.search('\.h$', file):
if rdatahdr_mtime < getmtime(file):
rdatahdr_mtime = getmtime(file)
rdata_declarations += import_classheader(class_txt,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment