Menu

Tree [64dcf6] default tip /
 History

Read Only access


File Date Author Commit
 make 2023-10-10 Mike Becker Mike Becker [ed9a5f] update uwproj (adds support for config.site)
 src 2025-04-10 Mike Becker Mike Becker [44b333] greatly improve memory usage - fixes #634
 test 2023-09-22 Mike Becker Mike Becker [ae7631] replace autoconf with uwproj
 vs 2025-04-07 Mike Becker Mike Becker [e4592d] implement -d option (issue #489) and various im...
 .hgignore 2024-11-10 Mike Becker Mike Becker [b3d267] improve the dist Makefile target
 .hgtags 2025-04-10 Mike Becker Mike Becker [64dcf6] Added tag v1.5.0 for changeset 5c9e268aa6d8
 LICENSE 2018-08-23 Mike Becker Mike Becker [68018e] adds simple tiny test suite and updates license...
 Makefile 2025-04-10 Mike Becker Mike Becker [5c9e26] release v1.5.0
 README 2023-09-22 Mike Becker Mike Becker [ae7631] replace autoconf with uwproj
 configure 2023-10-10 Mike Becker Mike Becker [ed9a5f] update uwproj (adds support for config.site)

Read Me

                                       cline
                        _________________________________________
                             Copyright (C) 2018 Mike Becker

Contents:
1) About ................................................................... 12
2) Build instructions ...................................................... 24
3) Usage example ........................................................... 35
4) License ................................................................. 44


1) About ______________________________________________________________________

cline is a command line tool that counts code lines in your project folder. It
is designed to recursively find any source file matching specific rules and
count the line breaks within that file. You may specify file suffixes to include
or exclude as well as regular expressions for code lines that shall be excluded
(e.g. to exclude comments). By default a heuristic algorithm skips binary files.
You may configure the restrictiveness of this algorithm with command line
options.

Type cline --help for further information.

2) Build instructions _________________________________________________________

When you want to build from source, you can just run
  make

After building you get a system wide install with
  sudo make install

To enable a debug build, configure with
  ./configure --debug

3) Example usage ______________________________________________________________

You can test cline right away with the cline project files. Just type:
  cline -rms .c,.h --exclude-cstyle-comments

This will find any .c or .h file recursively in the cline project folder and
won't display other files (-m option). It will also skip comments when counting
lines.

4) License ____________________________________________________________________

Copyright 2018 Mike Becker. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
 
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.