lyx_mirror/development/tools/count_lines_of_included_code.sh

9 lines
223 B
Bash
Raw Normal View History

#!/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`
printf "%-40s: %d\n" $i $l
done