File: count_lines_of_included_code.sh

package info (click to toggle)
lyx 2.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 96,552 kB
  • sloc: cpp: 388,556; python: 19,985; ansic: 9,725; sh: 5,696; makefile: 3,907; pascal: 1,388; objc: 985; perl: 319; yacc: 289; tcl: 163; xml: 23; sed: 16
file content (8 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
#!/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