]> git.lyx.org Git - lyx.git/blobdiff - development/tools/count_total_lines_of_compiled_code.sh
*UG - Add hint from users list
[lyx.git] / development / tools / count_total_lines_of_compiled_code.sh
index 67994960e92f0c6d546e8257a81b270a6aaa44cd..95a248236e73553f482b474ec36351be233781ea 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-qt=/usr/include/qt4
+qt=$QTDIR/include
 build=../../../build
 
 inc="-I$qt -I$qt/QtCore -I$qt/QtGui"
@@ -14,6 +14,7 @@ inc="$inc -I../../src/frontends/qt4"
 
 s=0
 t=0
+defines="-DQT_NO_STL -DQT_NO_KEYWORDS"
 #for i in `find ../../src/frontends/qt4 -name '*.cpp'` ; do
 #for i in `find ../../src/insets -name '*.cpp'` ; do
 #for i in `find ../../src/mathed -name '*.cpp'` ; do
@@ -21,8 +22,9 @@ 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
+#for i in ../../src/frontends/qt4/GuiPrint.cpp ; do
+#for i in ../../src/frontends/qt4/1.cpp ; do
        #echo $i
        #echo "g++ $inc $defines -E $i"
        #g++ $inc $defines -E $i > tmp/`basename $i`