From: André Pönitz Date: Fri, 14 Mar 2008 19:48:58 +0000 (+0000) Subject: add -DQT_NO_KEYWORDS to the statistic scripts, since that's what we use in X-Git-Tag: 1.6.10~5648 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=afc94c736f24faf0534d501b353811ab6cfb4171;p=lyx.git 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 --- diff --git a/development/tools/count_lines_of_included_code.sh b/development/tools/count_lines_of_included_code.sh index 0d6d01bdc5..ac83d0def4 100644 --- a/development/tools/count_lines_of_included_code.sh +++ b/development/tools/count_lines_of_included_code.sh @@ -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 diff --git a/development/tools/count_total_lines_of_compiled_code.sh b/development/tools/count_total_lines_of_compiled_code.sh index 0196d262c0..67994960e9 100755 --- a/development/tools/count_total_lines_of_compiled_code.sh +++ b/development/tools/count_total_lines_of_compiled_code.sh @@ -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]