PageRenderTime 102ms CodeModel.GetById 40ms app.highlight 3ms RepoModel.GetById 57ms app.codeStats 1ms

/utils/stat

http://github.com/AF83/ucengine
Shell | 34 lines | 23 code | 10 blank | 1 comment | 0 complexity | e3cedcb90e7d4c0584f2a31afacfd6ca MD5 | raw file
 1#!/bin/sh
 2
 3core=`cat ucengine/src/core/*.erl | wc -l`
 4controllers=`cat ucengine/src/controllers/*.erl | wc -l`
 5helpers=`cat ucengine/src/helpers/*.erl | wc -l`
 6models=`cat ucengine/src/models/*.erl | wc -l`
 7backends=`cat ucengine/src/backends/**/**/**.erl | wc -l`
 8tests=`cat ucengine/src/tests/*.erl | wc -l`
 9
10echo -n "Core: "
11echo $core
12
13echo -n "Controllers: "
14echo $controllers
15
16echo -n "Helpers: "
17echo $helpers
18
19echo -n "Models: "
20echo $models
21
22echo -n "Backends: "
23echo $backends
24
25echo -n "Tests: "
26echo $tests
27
28echo
29
30echo -n "Total without tests: "
31echo "$core+$controllers+$helpers+$models+$backends" | bc
32
33echo -n "Total: "
34echo "$core+$controllers+$helpers+$models+$backends+$tests" | bc