def copy_and_modify_readme()

in build.py [0:0]


def copy_and_modify_readme(base_dir, kibana_version):
    """Copy the 'instructions.md' file from the support directory, rename it to 'readme.md', and modify its contents."""
    source_path = Path(__file__).parent / 'support' / 'instructions.md'
    destination_path = base_dir / 'readme.md'
    shutil.copy(source_path, destination_path)
    logging.info(f"Created 'readme.md' at {destination_path}")
    with open(destination_path, 'r+') as file:
        content = file.read()
        modified_content = content.replace('{version}', kibana_version)
        file.seek(0)
        file.write(modified_content)
        file.truncate()