[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[eclipse.org-architecture-council] [Bug 249959] [discussion] How to treat copyright headers for checked-in generated sources?
|
https://bugs.eclipse.org/bugs/show_bug.cgi?id=249959
Product/Component: Community / Architecture Council
--- Comment #8 from Ed Merks <Ed.Merks@xxxxxxxxx> 2008-10-09 08:15:40 -0400 ---
I expect Janet will have an opinion at some point. It seems to be best that a
policy statement be made so that the issue doesn't end up being revisited
during the legal review closer to the release date.
Personally I'd make every effort to include a copyright header that asserted
the appropriate copyright based on the input to the generator. I'd do that
even if the the goal was only to add tags like $Id$ so that the source when
extracted from CVS would be more traceable to a specific version. It really
wouldn't be that all that difficult to write simple SED script that replaces
all the text before the initial package declaration with a reasonable
copyright.
For example, if you have cygwin or are on Linux, use this to visit all the
*.java files
for i in $(find src -name "*.java"); do sed -f insert-copyright $i > $i.new; mv
$i.new $i; done
The script would look like this:
1i\
/**\
* My Copyright\
* $Id$\
*/
/^package/,$!d
Given the infrequency of the regeneration, that seems little burden...
--
Configure bugmail: https://bugs.eclipse.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.