This was actually a part of a larger reply - but I decided not to sent
that. Didn't want to throw away the work I did to get accurate numbers
though ;)

   I investigated:

   find -name "*.c" | wc --lines
   11100
   find -name "*.c" | xargs egrep "(version 
2.*([Ll]icense|redistribute|released|GNU|GPL|any later 
version|Foundation))|(([Ll]icense|redistribute|released|GNU|GPL|any later 
version|Foundation).*version 2)" | sed -e 's/:.*//' | sort -u | wc --lines
   4042
   find -name "*.c" | xargs egrep "(version 
2.*([Ll]icense|redistribute|released|GNU|GPL|any later 
version|Foundation))|(([Ll]icense|redistribute|released|GNU|GPL|any later 
version|Foundation).*version 2)" | egrep -v '(either version 
2(\.[0-9])*|version 2(\.[0-9])*( of the License)*,* or)' | sed -e 's/:.*//' | 
sort -u | wc --lines
   1377
   find -name "*.c" | xargs egrep "(version 
2.*([Ll]icense|redistribute|released|GNU|GPL|any later 
version|Foundation))|(([Ll]icense|redistribute|released|GNU|GPL|any later 
version|Foundation).*version 2)" | egrep -v '(either version 
2(\.[0-9])*|version 2(\.[0-9])*( of the License)*,* or)' | sed -e 's/:.*//' | 
sort -u | xargs grep 'any later version' | wc --lines
   4

   Hence there are 1377 - 4 = 1373 .c files that explicitely say 'version 2',
   and 4042 - 1373 = 2669 .c files that say 'version 2 or later'.
   There are 11100 - 1373 - 2669 = 7058 files that do not say anything.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to