1
0
mirror of https://git.lyx.org/repos/lyx.git synced 2024-12-22 21:21:32 +00:00
lyx_mirror/development/tools/count_lines_of_included_code.sh
Guillaume Munch a8ad43d4fd Check that we have bash before running updatelfuns.sh
Also set executable bits on the devel scripts.
2016-01-11 16:26:13 +00:00

9 lines
244 B
Bash
Executable File

#!/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