python build script: fix for top Makefile changes

This commit is contained in:
Andrew Tonner 2017-01-22 15:25:02 -08:00
parent 4326182b02
commit bab9a35ff2

View File

@ -439,8 +439,11 @@ def get_symlink_filenames(prefix="SheepShaver/src/"):
with open(top_makefile, "r") as handle:
while not handle.readline().startswith("links:"):
pass
first_line = handle.readline()
links_list_prefix = " @list='"
while True:
first_line = handle.readline()
if first_line.startswith(links_list_prefix):
break
assert first_line.startswith(links_list_prefix)
lines = [first_line[len(links_list_prefix):]]
while True: