diff --git a/SheepShaver/src/Windows/build_on_msys.py b/SheepShaver/src/Windows/build_on_msys.py index 55f62054..e6e3e546 100644 --- a/SheepShaver/src/Windows/build_on_msys.py +++ b/SheepShaver/src/Windows/build_on_msys.py @@ -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: