mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Prettier reporting
This commit is contained in:
parent
7766cc96c1
commit
accd21dec7
@ -1,12 +1,30 @@
|
|||||||
#!/bin/sh
|
#!/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 tests/*.cc benchmarks/*.cc lib/*/*/*/*.cc lib/*/*/*/*.h
|
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"
|
||||||
|
|
||||||
echo "lib"
|
for sdir in `ls -F lib/| grep /`
|
||||||
wc -l lib/*.h lib/*/*.h lib/*/*/*.h lib/*.cc lib/*/*.cc lib/*/*/*.cc lib/*/*/*/*.cc lib/*/*/*/*.h | grep total
|
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
|
||||||
|
|
||||||
echo "tests"
|
wc -l tests/*.cc | grep total >& tmp.fil
|
||||||
wc -l tests/*.cc | grep total
|
count=`grep total tmp.fil`
|
||||||
|
echo $count " in tests"
|
||||||
|
|
||||||
echo "benchmarks"
|
wc -l benchmarks/*.cc | grep total >& tmp.fil
|
||||||
wc -l benchmarks/*.cc | grep total
|
count=`grep total tmp.fil`
|
||||||
|
echo $count " in benchmarks"
|
||||||
|
|
||||||
|
rm tmp.fil
|
||||||
|
Loading…
Reference in New Issue
Block a user