You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by Travis Vitek <Tr...@roguewave.com> on 2008/06/02 19:16:32 UTC

RE: [jira] Created: (STDCXX-948) Define substitution variable for current year and automatically replace in all copyright notices.

 

>Eric Lemings wrote:
>
>                 Key: STDCXX-948
>                 URL: https://issues.apache.org/jira/browse/STDCXX-948
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: Configuration
>            Reporter: Eric Lemings
>            Priority: Minor
>
>
>Define a substitution variable during configuration (i.e. add 
>{{AC_SUBST(STDCXX_YEAR, `date +%Y`)}} to {{configure.ac}}) and 
>replace this variable in all copyright notices (i.e. change 
>{{Copyright 1994-2008 Rogue Wave Software, Inc.}} to 
>{{Copyright 1994-@STDCXX_YEAR@ Rogue Wave Software, Inc.}})
>
>-- 
>This message is automatically generated by JIRA.
>-
>You can reply to this email to add a comment to the issue online.
>
>

I believe that the copyright dates need to be correct for the files by
the time they are received by the user. If this is correct, then the
substitution would have to happen when the files are submitted to
subversion, not after the user has run the configure step.

One solution is to write a commit hook that verifies the copyright date
is accurate for files as they are committed. This has the disadvantage
that the copyrights aren't updated for files that aren't touched.

Another solution would be to have a script that runs periodically [say
every 24 hours] that checks out the head of a given branch, scans for
and updates the copyright, and then commits the result.

Travis

Re: [jira] Created: (STDCXX-948) Define substitution variable for current year and automatically replace in all copyright notices.

Posted by Martin Sebor <se...@roguewave.com>.
Travis Vitek wrote:
>  
> 
>> Eric Lemings wrote:
>>
>>                 Key: STDCXX-948
>>                 URL: https://issues.apache.org/jira/browse/STDCXX-948
>>             Project: C++ Standard Library
>>          Issue Type: Sub-task
>>          Components: Configuration
>>            Reporter: Eric Lemings
>>            Priority: Minor
>>
>>
>> Define a substitution variable during configuration (i.e. add 
>> {{AC_SUBST(STDCXX_YEAR, `date +%Y`)}} to {{configure.ac}}) and 
>> replace this variable in all copyright notices (i.e. change 
>> {{Copyright 1994-2008 Rogue Wave Software, Inc.}} to 
>> {{Copyright 1994-@STDCXX_YEAR@ Rogue Wave Software, Inc.}})
>>
>> -- 
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>>
> 
> I believe that the copyright dates need to be correct for the files by
> the time they are received by the user. If this is correct, then the
> substitution would have to happen when the files are submitted to
> subversion, not after the user has run the configure step.
> 
> One solution is to write a commit hook that verifies the copyright date
> is accurate for files as they are committed. This has the disadvantage
> that the copyrights aren't updated for files that aren't touched.
> 
> Another solution would be to have a script that runs periodically [say
> every 24 hours] that checks out the head of a given branch, scans for
> and updates the copyright, and then commits the result.

The copyrights only apply to Rogue Wave code, not to code
submitted by other contributors (those go in NOTICE.txt),
so automating the updates would have to involve scanning
each file's log to determine the origin of all changes in
the current year to see if at least one of them originated
at Rogue Wave. To be completely correct and accurate, the
copyright years should also be a list and not a range as
they are now, to make gaps possible.

Martin

RE: [jira] Created: (STDCXX-948) Define substitution variable for current year and automatically replace in all copyright notices.

Posted by Eric Lemings <Er...@roguewave.com>.
 

> -----Original Message-----
> From: Travis Vitek [mailto:Travis.Vitek@roguewave.com] 
> Sent: Monday, June 02, 2008 11:17 AM
> To: dev@stdcxx.apache.org
> Subject: RE: [jira] Created: (STDCXX-948) Define substitution 
> variable for current year and automatically replace in all 
> copyright notices.
> 
>  
> 
> >Eric Lemings wrote:
> >
> >                 Key: STDCXX-948
> >                 URL: 
> https://issues.apache.org/jira/browse/STDCXX-948
> >             Project: C++ Standard Library
> >          Issue Type: Sub-task
> >          Components: Configuration
> >            Reporter: Eric Lemings
> >            Priority: Minor
> >
> >
> >Define a substitution variable during configuration (i.e. add 
> >{{AC_SUBST(STDCXX_YEAR, `date +%Y`)}} to {{configure.ac}}) and 
> >replace this variable in all copyright notices (i.e. change 
> >{{Copyright 1994-2008 Rogue Wave Software, Inc.}} to 
> >{{Copyright 1994-@STDCXX_YEAR@ Rogue Wave Software, Inc.}})
> >
> >-- 
> >This message is automatically generated by JIRA.
> >-
> >You can reply to this email to add a comment to the issue online.
> >
> >
> 
> I believe that the copyright dates need to be correct for the files by
> the time they are received by the user. If this is correct, then the
> substitution would have to happen when the files are submitted to
> subversion, not after the user has run the configure step.

Good point.  Hadn't thought of that.

> 
> One solution is to write a commit hook that verifies the 
> copyright date
> is accurate for files as they are committed. This has the disadvantage
> that the copyrights aren't updated for files that aren't touched.

One could say it should work this way.

> 
> Another solution would be to have a script that runs periodically [say
> every 24 hours] that checks out the head of a given branch, scans for
> and updates the copyright, and then commits the result.

I'd say that's overkill.  :)  Me personally, I'd prefer the commit hook
solution.  All that we'd need to do is add a new Subversion keyword
such as $Year$ (if there isn't one already) and I'll bet Farid would
know exactly how to do this.  :)

Brad.