File: loc.sh

package info (click to toggle)
storm-lang 0.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,984 kB
  • sloc: ansic: 261,420; cpp: 140,270; sh: 14,877; perl: 9,846; python: 2,525; lisp: 2,504; asm: 860; makefile: 678; pascal: 70; java: 52; xml: 37; awk: 12
file content (14 lines) | stat: -rwxr-xr-x 878 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
echo "----- Compiler--------------------------------------------"
find Compiler/ CppTypes/ Core/ Test/ -name "*.cpp" -or -name "*.h" | xargs perl cloc.pl
echo "----- OS -------------------------------------------------"
find OS/ -name "*.cpp" -or -name "*.h" | xargs perl cloc.pl
echo "----- Code  ----------------------------------------------"
find Code/ -name "*.cpp" -or -name "*.h" | xargs perl cloc.pl
echo "----- Total ----------------------------------------------"
find ./ -name "*.cpp" -or -name "*.h" | grep -viE '^\./(Old|mps|SoundLib|Linux)/' | xargs perl cloc.pl

echo "----- Basic Storm ----------------------------------------"
find ./ -name "*.bs" | grep -viE '^./root/test/large/*' | xargs perl cloc.pl --force-lang=Java
echo "----- Syntax ---------------------------------------------"
find ./ -name "*.bnf" | xargs perl cloc.pl --force-lang=Java