lyx_mirror/development/tools/count_lines_of_included_code.sh
André Pönitz afc94c736f 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
2008-03-14 19:48:58 +00:00

9 lines
244 B
Bash

#!/bin/bash
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_KEYWORDS -DQT_NO_STL -E 1.cpp | wc -l`
printf "%-40s: %d\n" $i $l
done