![]() Registered Member ![]()
|
Hi,
Just a simple question : Does anyone how many lines does the entiere KDE *trunk* repos (KDE + Extragear + Review + Koffice ..) contains ?
Last edited by maattd on Mon Oct 20, 2008 12:43 pm, edited 1 time in total.
maattd, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
Lines, as in lines of code?
Stercus accidit
|
![]() Registered Member ![]()
|
Yes ![]()
maattd, proud to be a member of KDE forums since 2008-Oct.
|
![]() KDE Developer ![]()
|
http://www.ohloh.net/projects/kde
is a good resource. The "enlistments" link, I think, gives a breakdown of what areas of SVN it's counting.
ssj-gz.blogspot.com: KDE4Daily, Konqueror4 Restoration
|
![]() Registered Member ![]()
|
I'm making a little script with some grep -c to count lines
![]() If someone have the trunk/KDe on is computer, he may would try it (but i don't know anything about performance of the script ![]()
maattd, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
If someone have the whole repos (at least kdebase) on his computer, can he run this script plz
![]() (i know .. 4 month for a 20 lines shell script ![]()
Last edited by maattd on Fri Feb 13, 2009 11:42 pm, edited 1 time in total.
maattd, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
The script does not work: expr: syntax error
in addition does it check the current directory, or the directory the script is in?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
You have to give a directory in parameter ( Usage : sh name_of_the_script.sh /My/directory/ )
Can you try this version, i correct a little mistake. Thanks ![]()
maattd, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
I think something must be wrong still. Apparently kdelibs has only 147 lines of code. I still recieved stacks of these errors:
expr: non-numeric argument expr: syntax error "expr" version:
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
I don't have expr error in my computer.
And the lines are basics ( nboctets=`expr $nboctets + $taille` ) i can't understand why it doesn't work. Well here is a script really light, without all the test and without expr ![]() For the script to work, do not have binary file in the directory ( .o or executable), just the sources.
Last edited by maattd on Sat Feb 14, 2009 10:03 am, edited 1 time in total.
maattd, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
That worked. KDE Libs contains 3347812 lines. However, that figure will be skewed if the script takes into account hidden ( .* ) directories, since my copy was checked out of svn.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Yea this script counts ALL the files in the directory/subdirectory.
So now we have the script can you please, do it for : trunk/KDE/kdebase trunk/KDE trunk/extragear trunk/koffice and maybe trunk/ but i doubt someone have the whole trunk repo sync in his computer ![]() Thanks a lot. (and kudos for the forum)
maattd, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
Unfortunately I only have sections of Trunk, but these are the figures for the modules I have:
I only get subsections of the extragear & playground modules, so my counts of those are useless. kdebase: 3775223 kdeedu: 4080073 kdegames: 2047614 kdegraphics: 650468 kdemultimedia: 277919 kdenetwork: 1708141 kdepim: 2782210 kdepimlibs: 761965 kdeplasma-addons: 202193 kdesdk:1360238 kdesupport: 2784267 kdeutils: 478537 kdevelop: 408324 kdevplatform: 368204 koffice: 6224186
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Thanks a lot cookley. ![]() This is more lines than i was guessing oO
maattd, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
If it includes .svn directories then halve those figures at least.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]