mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
add -DQT_NO_KEYWORDS to the statistic scripts, since that's what we use in
reality git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23722 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
09e90f10ae
commit
afc94c736f
@ -2,7 +2,7 @@
|
||||
for i in "$@" ; do
|
||||
echo "#include <$i>" > 1.cpp
|
||||
inc='-I. -I/suse/usr/src/lyx/trunk/boost -I/usr/include/qt4/QtCore -I/usr/include/qt4'
|
||||
l=`g++ $inc -DQT_NO_STL -E 1.cpp | wc -l`
|
||||
l=`g++ $inc -DQT_NO_KEYWORDS -DQT_NO_STL -E 1.cpp | wc -l`
|
||||
printf "%-40s: %d\n" $i $l
|
||||
done
|
||||
|
||||
|
@ -21,12 +21,13 @@ t=0
|
||||
#for i in `find ../../src/graphics -name '*.cpp'` ; do
|
||||
#for i in `find ../../src/graphics -name '*.cpp'` ; do
|
||||
#for i in `find ../../src/support/chdir.cpp` ; do
|
||||
defines=-DQT_NO_STL -DQT_NO_KEYWORDS
|
||||
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`
|
||||
g++ $inc -DQT_NO_STL -E $i > t
|
||||
l=`g++ $inc -DQT_NO_STL -E $i | wc -l`
|
||||
#echo "g++ $inc $defines -E $i"
|
||||
#g++ $inc $defines -E $i > tmp/`basename $i`
|
||||
g++ $inc $defines -E $i > t
|
||||
l=`g++ $inc $defines -E $i | wc -l`
|
||||
f=`cat $i | wc -l`
|
||||
s=$[s + l]
|
||||
t=$[t + f]
|
||||
|
Loading…
Reference in New Issue
Block a user