From 02e7140ee68229dcd439f7e333cd3858265cab08 Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Tue, 18 Oct 2016 18:34:16 +0200 Subject: Auto extend copyright year in app bundles and fix copyright Test-Information: Build Swift and verified that Info.plist inside Swift.app has the updated year and copyright on macOS 10.12. Change-Id: I84f921edf0b555a102dfb207d8fc3ee5f5f59eb9 diff --git a/BuildTools/SCons/Tools/AppBundle.py b/BuildTools/SCons/Tools/AppBundle.py index 5f19898..6b7fc8b 100644 --- a/BuildTools/SCons/Tools/AppBundle.py +++ b/BuildTools/SCons/Tools/AppBundle.py @@ -1,4 +1,5 @@ import SCons.Util, os.path +from datetime import date def generate(env) : def createAppBundle(env, bundle, version = "1.0", resources = [], frameworks = [], info = {}, handlesXMPPURIs = False, sparklePublicDSAKey = None) : @@ -20,7 +21,7 @@ def generate(env) : "CFBundleVersion" : version, "CFBundleIconFile" : bundle, "NSPrincipalClass" : "NSApplication", - "NSHumanReadableCopyright" : "(c) 2010 Swift Development Team.\nAll Rights Reserved." + "NSHumanReadableCopyright" : "(c) 2010-%d Isode Ltd.\nAll Rights Reserved." % date.today().year } infoDict.update(info) -- cgit v0.10.2-6-g49f6