mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-09 23:45:36 +00:00
31 lines
980 B
Bash
Executable File
31 lines
980 B
Bash
Executable File
#!/bin/sh
|
|
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
|
|
|
|
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"
|
|
|
|
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
|
|
|
|
wc -l tests/*.cc tests/*/*.cc | grep total >& tmp.fil
|
|
count=`grep total tmp.fil`
|
|
echo $count " in tests"
|
|
|
|
wc -l benchmarks/*.cc | grep total >& tmp.fil
|
|
count=`grep total tmp.fil`
|
|
echo $count " in benchmarks"
|
|
|
|
rm tmp.fil
|