README 1.09 KB
Newer Older
Hamilton, Steven P's avatar
Hamilton, Steven P committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2012/02/15

Included in this directory is a snapshot of the GPL Perl script cloc.pl.  This
is a source code line counting tool.  Also contained in this directory are the
files cloc.<LANGUAGE_TYPE>.in that defines specializations of the default cloc
langauge definitions for TriBITS software.  Adding a language definition file
directly to TriBITS aids in trying to help standardize the names of language
files a little.

To run the tool on your project, do:

   $ cd SOME_PROJECT
   $ $TRIBITS_DIR/common_tools/cloc/cloc.pl \
        --read-lang-def=<LANG_DEF_FILE> \
        .

Here, the different language definition files are:

   $TRIBITS_DIR/common_tools/cloc/cloc.core-languages.in
   $TRIBITS_DIR/common_tools/cloc/cloc.script-languages.in

Different TriBITS projects can copy these langauge definition files and define
their own language standards.  However, for the purposes of TriBITS meta build
across projects, it would be beneficial if all TriBITS projects could use a
single standard for language file extensions.

This will print statisitics to the screen.  See cloc.pl --help for other
useful option.