mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
add a script to count compiled lines of code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20613 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bfe44be587
commit
dba88f4ae6
24
development/misc/count_total_lines_of_compiled_code.sh
Executable file
24
development/misc/count_total_lines_of_compiled_code.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
qt=/usr/include/qt4
|
||||
build=../../../build
|
||||
|
||||
inc="-I$qt -I$qt/QtCore -I$qt/QtGui"
|
||||
inc="$inc -I$build/src"
|
||||
inc="$inc -I$build/src/frontends/qt4"
|
||||
inc="$inc -I../../boost"
|
||||
inc="$inc -I../../src"
|
||||
inc="$inc -I../../src/frontends"
|
||||
inc="$inc -I../../src/frontends/controllers"
|
||||
inc="$inc -I../../src/frontends/qt4"
|
||||
|
||||
s=0
|
||||
for i in `find ../.. -name *.cpp` ; do
|
||||
#echo $i
|
||||
#echo "g++ $inc -DQT_NO_STL -E $i"
|
||||
l=`g++ $inc -DQT_NO_STL -E $i | wc -l`
|
||||
s=$[s + l]
|
||||
printf "%10d %-40s\n" $l $i
|
||||
done
|
||||
echo "Total: $s"
|
||||
|
Loading…
Reference in New Issue
Block a user