From 5b585a4ab588f851902298263630caed458e7021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Tue, 2 Feb 2010 17:53:31 +0100 Subject: Fix correct starting copyright year --- lib/wx/api_gen/gen_util.erl | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'lib/wx') diff --git a/lib/wx/api_gen/gen_util.erl b/lib/wx/api_gen/gen_util.erl index de66083fdf..eff92e10ca 100644 --- a/lib/wx/api_gen/gen_util.erl +++ b/lib/wx/api_gen/gen_util.erl @@ -205,10 +205,12 @@ halt(Reason) -> end. erl_copyright() -> + StartYear = start_year(get(current_class)), w("%%~n",[]), w("%% %CopyrightBegin%~n",[]), w("%%~n",[]), - w("%% Copyright Ericsson AB 2008-2010. All Rights Reserved.~n",[]), + w("%% Copyright Ericsson AB ~p-2010. All Rights Reserved.~n", + [StartYear]), w("%%~n",[]), w("%% The contents of this file are subject to the Erlang Public License,~n",[]), w("%% Version 1.1, (the \"License\"); you may not use this file except in~n",[]), @@ -243,4 +245,25 @@ c_copyright() -> w(" * %CopyrightEnd% ~n",[]), w("*/~n",[]). - +start_year("wxAuiManagerEvent") -> 2009; +start_year("wxAuiNotebookEvent") -> 2009; +start_year("wxChoicebook") -> 2009; +start_year("wxGridCellBoolEditor") -> 2009; +start_year("wxGridCellBoolRenderer") -> 2009; +start_year("wxGridCellChoiceEditor") -> 2009; +start_year("wxGridCellFloatEditor") -> 2009; +start_year("wxGridCellFloatRenderer") -> 2009; +start_year("wxGridCellNumberEditor") -> 2009; +start_year("wxGridCellNumberRenderer") -> 2009; +start_year("wxGridCellStringRenderer") -> 2009; +start_year("wxGridCellTextEditor") -> 2009; +start_year("wxHtmlLinkEvent") -> 2009; +start_year("wxHtmlWindow") -> 2009; +start_year("wxListbook") -> 2009; +start_year("wxLogNull") -> 2009; +start_year("wxSpinEvent") -> 2009; +start_year("wxSplitterEvent") -> 2009; +start_year("wxSplitterWindow") -> 2009; +start_year("wxToolbook") -> 2009; +start_year("wxTreebook") -> 2009; +start_year(_) -> 2008. -- cgit v1.2.3