Community mailing list archives

community@mail.odoo.com

Re: "The way to iOdoo"

by
Interpreta solucions empresarials S.L., Toni Mas
- 05/15/2015 06:49:40
El 15/05/15 a las 07:38, Caudal Eric escribió:
> A research might be interesting to perform in our github but basically yes
> 
> Eric Caudal
> 

Some fast approximation:

#Get all the repos in OCA
$ curl "https://api.github.com/orgs/OCA/repos?page=1&per_page=100"|grep
clone_url| cut -d '"' -f 4 >>repos
$ curl "https://api.github.com/orgs/OCA/repos?page=2&per_page=100"|grep
clone_url| cut -d '"' -f 4 >>repos
$ wc -l repos
105 repos

#Clone them
$ for i in `cat repos`; do j=`echo $i|awk -F '[/.]' '{print $6}'`; mkdir
$j; git clone $i $j; done
[...]
$ rm repos
$ du -cs --apparent-size .
1325744 .
1325744 total
$ ls -R|wc -l
43946

#Count modules for v8
$ for i in `find . -maxdepth 2 -mindepth 2 -type d |grep -vi
'__\|\.git\|OCB\|odoo-community'`; do if [ -d "$i" ]; then  echo $i; fi;
done |wc -l
443

#Find 'Affero' on them
$ for i in `find . -maxdepth 2 -mindepth 2 -type d |grep -vi
'__\|\.git\|OCB\|odoo-community'`; do if grep -irq affero $i; then  echo
$i; fi; done|wc -l
416

#Find 'Lesser General'
$ for i in `find . -maxdepth 2 -mindepth 2 -type d |grep -vi
'__\|\.git\|OCB\|odoo-community'`; do if grep -irq "lesser general" $i;
then  echo $i; fi; done|wc -l
2
$ for i in `find . -maxdepth 2 -mindepth 2 -type d |grep -vi
'__\|\.git\|OCB\|odoo-community'`; do if grep -irq "gnu lesser" $i; then
 echo $i; fi; done
./web/web_ckeditor4
./web/web_widget_color

#Find 'General Public'
$ for i in `find . -maxdepth 2 -mindepth 2 -type d |grep -vi
'__\|\.git\|OCB\|odoo-community'`; do if grep -irq -e "general public"
$i; then  echo $i; fi; done|wc -l
428 # 428 - 416 AGPL - 2 LGPL = 10 GPL

#Not matching
$ for i in `find . -maxdepth 2 -mindepth 2 -type d |grep -vi
'__\|\.git\|OCB\|odoo-community'`; do if grep -irq -e "general public"
$i; then  echo $i; fi; done >xGPL
$ for i in `find . -maxdepth 2 -mindepth 2 -type d |grep -vi
'__\|\.git\|OCB\|odoo-community'`; do if [ -d "$i" ]; then  echo $i; fi;
done > TOTAL
$ diff TOTAL xGPL
210,211d209
 On May 15, 2015 8:43 AM, "Alberto Barrionuevo" <abarrio@opentia.es
> <mailto:abarrio@opentia.es>> wrote:
> 
>     On 15/05/15 02:28, Caudal Eric wrote:
>     > Please remind that OCA promotes OSI compliant licenses
>     > (http://opensource.org/licenses/alphabetical), not only AGPL3.
>     >
>     Correct, actually this is one of the simplifications I took the freedom 
>     to use.  :-)
> 
>     The reality is that near to all the contributions currently may be 
>     AGPL3, except the older ones that surely were GPL2/3. Am I right?
> 
>     Best,
>     //Alberto.
> 
>     _______________________________________________
>     Mailing-List: https://www.odoo.com/groups/community-59
>     Post to: mailto:community@mail.odoo.com <mailto:community@mail.odoo.com>
>     Unsubscribe: https://www.odoo.com/groups?unsubscribe
> 
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-59
> Post to: mailto:community@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
>