From 5877eaf5d670634e42ce125ba0667f924c1d145d Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Tue, 3 Aug 2010 21:33:41 +0200 Subject: [PATCH] Automatically update copyright end year --- src/Main/GlobalAssemblyInfo.template | 2 +- src/Tools/UpdateAssemblyInfo/Main.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main/GlobalAssemblyInfo.template b/src/Main/GlobalAssemblyInfo.template index 2eed8250de..791a1c132a 100644 --- a/src/Main/GlobalAssemblyInfo.template +++ b/src/Main/GlobalAssemblyInfo.template @@ -20,7 +20,7 @@ using System.Reflection; [assembly: System.Runtime.InteropServices.ComVisible(false)] [assembly: AssemblyCompany("ic#code")] [assembly: AssemblyProduct("SharpDevelop")] -[assembly: AssemblyCopyright("2000-2010 AlphaSierraPapa for the SharpDevelop Team")] +[assembly: AssemblyCopyright("2000-$INSERTYEAR$ AlphaSierraPapa for the SharpDevelop Team")] [assembly: AssemblyVersion(RevisionClass.FullVersion)] [assembly: NeutralResourcesLanguage("en-US")] diff --git a/src/Tools/UpdateAssemblyInfo/Main.cs b/src/Tools/UpdateAssemblyInfo/Main.cs index de74563206..d2fadcd904 100644 --- a/src/Tools/UpdateAssemblyInfo/Main.cs +++ b/src/Tools/UpdateAssemblyInfo/Main.cs @@ -109,6 +109,7 @@ namespace UpdateAssemblyInfo content = content.Replace("$INSERTREVISION$", revisionNumber); content = content.Replace("$INSERTCOMMITHASH$", gitCommitHash); content = content.Replace("$INSERTDATE$", DateTime.Now.ToString("MM/dd/yyyy", CultureInfo.InvariantCulture)); + content = content.Replace("$INSERTYEAR$", DateTime.Now.Year.ToString()); if (File.Exists(file.Output)) { using (StreamReader r = new StreamReader(file.Output)) { if (r.ReadToEnd() == content) {