Next: , Previous: , Up: make install   [Contents][Index]


SLOCCount

SLOCCount

SLOCCount is a utility that counts the number of lines of code in a file, excluding blank lines and comments. SLOCCount supports a variety of programming languages and it is straightforward to get it to support coNCePTuaL, as well. The procedure follows the “Adding support for new languages” section of the SLOCCount manual:

  1. Create an ncptl_count script with the following contents:
    #! /bin/sh
    
    generic_count "#" $@
    
  2. Mark the script executable and install it somewhere in your executable search path.
  3. Edit SLOCCount’s break_filelist Perl script to include the following association in the %file_extensions hash:
      "ncptl" => "ncptl",    # coNCePTuaL
    
Scott Pakin, pakin@lanl.gov