On 9/9/06, Jörn Nettingsmeier <[EMAIL PROTECTED]> wrote:
the command line tells me some interesting trivia about lenya:

[EMAIL PROTECTED]:/srv/lenya-vanilla/src> find -wholename "*svn*"
-prune -o -not -type d -print -exec cat {} \; | wc -l
285700

285700 lines of code in lenya/src, excluding all svn housekeeping stuff.

[EMAIL PROTECTED]:/srv/lenya-vanilla/src> echo $((`grep -r
"http://www.apache.org/licenses/LICENSE-2.0"; * | wc -l` * 13))
36855

of which 36855 are the apache license (which happens to be 13 lines
long, hence the outer evaluation).

if my rusty math doth not betray me, that's, ahem, like, ten something
percent, right?

:-D

> Jörn Nettingsmeier wrote:
>> i'm preparing a module for eventual submission into the lenya trunk, and
>> it's really shocking how much screen real estate, disk space and
>> scrolling time is eaten up by the gazillions of apache license notes...
> Disk space is cheap :)

obviously :)

>> would it be in compliance with apache policy to just add a two liner like
>> /* this code is distributed under the terms of the
>>    apache source license v.2, see file:///... */
>> to every file, and maybe include the file once per module, or better
>> yet, only in the trunk root dir?
> I don't think this would be in compliance.
> http://www.apache.org/licenses/LICENSE-2.0.html#apply

that's strange, because that boilerplate stuff is little more than a
reference itself. it's just informational. all that's legally binding is
in the mentioned URL. but i omitted one important thing: the copyright
holder and year. if that's in, the whole shebang should be trimmable to
2-3 lines... but if noone else case, i'm shutting up about it.

Using your numbers and a calculator, the license uses 12.9%, and the
average file is 101 lines.  But where did you get 13 lines for the
license?

Looking at several java files from 1.4, I counted:
- 16 lines of license
- (Optional) 1 empty line.
- 1 line for the SVN change log.
- 1 empty line.
- 1 Package line
- 1 empty line.
- (Optional) Standard imports plus 1 empty line.
- (Optional) Apache imports  plus 1 empty line.
- (Optional) Javadoc for class.
- Class definition

Providing completely useless information, yours truly,
solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to