Rename defines header (#142)

This commit is contained in:
Bailey Thompson
2020-10-02 19:46:13 -04:00
committed by GitHub
parent cc17f4c6d0
commit 354e0aef1b
19 changed files with 19 additions and 17 deletions

View File

@@ -51,7 +51,8 @@ for filename in sorted(glob.glob(os.path.join(folder_path, '*.h'))):
with open(filename, 'r') as file:
text = file.read()
entire_file = text.split("*/", 1)[1]
split_around_include = entire_file.split('#include "all.h"\n\n', 1)
split_around_text = '#include "_bk_defines.h"\n\n'
split_around_include = entire_file.split(split_around_text, 1)
header += split_around_include[0]
if len(split_around_include) == 2:
header += split_around_include[1]