]> git.lyx.org Git - lyx.git/commitdiff
some helper
authorAndré Pönitz <poenitz@gmx.net>
Wed, 3 Oct 2007 21:19:57 +0000 (21:19 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 3 Oct 2007 21:19:57 +0000 (21:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20716 a592a061-630c-0410-9148-cb99ea01b6c8

development/misc/count_lines_of_included_code.sh [new file with mode: 0644]
development/misc/count_total_lines_of_compiled_code.sh

diff --git a/development/misc/count_lines_of_included_code.sh b/development/misc/count_lines_of_included_code.sh
new file mode 100644 (file)
index 0000000..01516b9
--- /dev/null
@@ -0,0 +1,40 @@
+
+for i in \
+       boost/bind.hpp \
+       boost/array.hpp \
+       boost/assert.hpp \
+       boost/crc.hpp \
+       boost/cregex.hpp \
+       boost/current_function.hpp \
+       boost/function.hpp \
+       boost/iterator/indirect_iterator.hpp \
+       boost/scoped_array.hpp \
+       boost/scoped_ptr.hpp \
+       boost/shared_ptr.hpp \
+       boost/signal.hpp \
+       boost/signals/connection.hpp \
+       boost/signals/trackable.hpp \
+       boost/tokenizer.hpp \
+       boost/tuple/tuple.hpp \
+       boost/utility.hpp \
+       boost/version.hpp \
+       boost/signals/trackable.hpp \
+       string \
+       vector \
+       map \
+       list \
+       deque \
+       QObject \
+       QString \
+       QList \
+       QVector \
+       QMap \
+       QHash \
+       QRegExp
+do
+       echo "#include <$i>"  > 1.cpp
+       inc='-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`
+       printf "%-40s: %d\n" $i $l
+done
+
index 95d88bb76b40025b95e09a5a6cc1b734631c41a6..2d5bebbd892842593fb22a12fe00d982f13880d9 100755 (executable)
@@ -16,7 +16,7 @@ s=0
 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 > tmp/`basename $i`
        l=`g++ $inc -DQT_NO_STL -E $i | wc -l`
        s=$[s + l]
        printf "%10d  %-40s\n" $l $i