improve statistic script a bit

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21700 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2007-11-21 22:27:30 +00:00
parent 24ec082d8e
commit bae2e86422

View File

@ -13,14 +13,18 @@ inc="$inc -I../../src/frontends/controllers"
inc="$inc -I../../src/frontends/qt4"
s=0
t=0
#for i in `find ../../src/frontends/qt4 -name *.cpp` ; do
#for i in `find ../../src/graphics -name '*.cpp'` ; do
for i in `find ../.. -name '*.cpp'` ; do
#echo $i
#echo "g++ $inc -DQT_NO_STL -E $i"
#g++ $inc -DQT_NO_STL -E $i > tmp/`basename $i`
l=`g++ $inc -DQT_NO_STL -E $i | wc -l`
f=`cat $i | wc -l`
s=$[s + l]
printf "%10d %-40s\n" $l $i
t=$[t + f]
printf "%10d %10d %-40s\n" $l $f $i
done
echo "Total: $s"
echo "Total: compiled: $s real: $t ratio:" $[s / t]