]> git.lyx.org Git - lyx.git/blobdiff - development/tools/count_lines_of_included_code.sh
Clean-up the code with respect to PassThru insets and layouts.
[lyx.git] / development / tools / count_lines_of_included_code.sh
index 01516b9b3d66eb9e0fc8565058f6e62e70067913..ac83d0def428104ebd5c3e4f436c24bfabc48637 100644 (file)
@@ -1,40 +1,8 @@
-
-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
+#!/bin/bash
+for i in "$@" ; 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`
+       inc='-I. -I/suse/usr/src/lyx/trunk/boost -I/usr/include/qt4/QtCore -I/usr/include/qt4'
+       l=`g++ $inc -DQT_NO_KEYWORDS -DQT_NO_STL -E 1.cpp | wc -l`
        printf "%-40s: %d\n" $i $l
 done