From 541d8bc78de5ce028dad8cfcc8f57bbc23d1c178 Mon Sep 17 00:00:00 2001 From: Duncan Cunningham Date: Fri, 23 May 2025 20:32:21 +0200 Subject: [PATCH] Update darling stub generator to use up to date copyright header --- tools/darling-stub-gen | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/darling-stub-gen b/tools/darling-stub-gen index 45e7092a5..754a28b62 100755 --- a/tools/darling-stub-gen +++ b/tools/darling-stub-gen @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -import sys, os, subprocess, re, getpass +import sys, os, subprocess, re, getpass, datetime # Data library = False @@ -20,10 +20,10 @@ private_framework_prefix = "/System/Library/PrivateFrameworks/" username = getpass.getuser() class_dump = "/Users/" + username + "/bin/class-dump" -copyright = """/* +copyright_template = """/* This file is part of Darling. - Copyright (C) 2019 Lubos Dolezel + Copyright (C) {} Darling Developers Darling is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -40,6 +40,7 @@ copyright = """/* */ """ +copyright = copyright_template.format(datetime.datetime.now(datetime.timezone.utc).year) c_func_impl_stub = """ void* %s(void) -- 2.51.2