2015-05-18 16:28:29 +01:00
|
|
|
#!/bin/sh
|
2015-06-09 22:39:37 +01:00
|
|
|
if [ $# -eq 1 ]
|
|
|
|
then
|
|
|
|
wc -l lib/*.h lib/*/*.h lib/*/*/*.h lib/*.cc lib/*/*.cc lib/*/*/*.cc tests/*.cc benchmarks/*.cc lib/*/*/*/*.cc lib/*/*/*/*.h >& tmp.fil
|
|
|
|
count=`grep total tmp.fil`
|
|
|
|
echo $count " in Grid library"
|
|
|
|
else
|
|
|
|
wc -l lib/*.h lib/*/*.h lib/*/*/*.h lib/*.cc lib/*/*.cc lib/*/*/*.cc tests/*.cc benchmarks/*.cc lib/*/*/*/*.cc lib/*/*/*/*.h
|
|
|
|
fi
|
2015-05-18 16:28:29 +01:00
|
|
|
|
2015-06-09 22:39:37 +01:00
|
|
|
wc -l lib/*.h lib/*/*.h lib/*/*/*.h lib/*.cc lib/*/*.cc lib/*/*/*.cc lib/*/*/*/*.cc lib/*/*/*/*.h >& tmp.fil
|
|
|
|
count=`grep total tmp.fil`
|
|
|
|
echo $count " in lib"
|
2015-06-09 10:26:19 +01:00
|
|
|
|
2015-06-09 22:39:37 +01:00
|
|
|
for sdir in `ls -F lib/| grep /`
|
|
|
|
do
|
|
|
|
wc -l lib/${sdir}/*.h lib/${sdir}/*/*.h lib/${sdir}/*.cc lib/${sdir}/*/*.cc lib/${sdir}/*/*/*.cc lib/${sdir}/*/*/*.h >& tmp.fil
|
|
|
|
count=`grep total tmp.fil`
|
|
|
|
echo $count " in lib/${sdir}"
|
|
|
|
done
|
2015-06-09 10:26:19 +01:00
|
|
|
|
2015-06-09 22:39:37 +01:00
|
|
|
wc -l tests/*.cc | grep total >& tmp.fil
|
|
|
|
count=`grep total tmp.fil`
|
|
|
|
echo $count " in tests"
|
2015-06-09 10:26:19 +01:00
|
|
|
|
2015-06-09 22:39:37 +01:00
|
|
|
wc -l benchmarks/*.cc | grep total >& tmp.fil
|
|
|
|
count=`grep total tmp.fil`
|
|
|
|
echo $count " in benchmarks"
|
|
|
|
|
|
|
|
rm tmp.fil
|