]> git.lyx.org Git - lyx.git/commitdiff
add -DQT_NO_KEYWORDS to the statistic scripts, since that's what we use in
authorAndré Pönitz <poenitz@gmx.net>
Fri, 14 Mar 2008 19:48:58 +0000 (19:48 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 14 Mar 2008 19:48:58 +0000 (19:48 +0000)
reality

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23722 a592a061-630c-0410-9148-cb99ea01b6c8

development/tools/count_lines_of_included_code.sh
development/tools/count_total_lines_of_compiled_code.sh

index 0d6d01bdc53de828607558f05e441482bf1f24cb..ac83d0def428104ebd5c3e4f436c24bfabc48637 100644 (file)
@@ -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
 
index 0196d262c0bc4deec76136af025f8a47b389f917..67994960e92f0c6d546e8257a81b270a6aaa44cd 100755 (executable)
@@ -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]