Merge pull request #1595 from sirnacnud/stub-generator-copyright

Update darling stub generator to use up to date copyright header
This commit is contained in:
CuriousTommy 2025-05-23 12:00:19 -07:00 committed by GitHub
commit 968a43368d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -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)