Tue, 21 May 2013 13:19:37 +0200
replaced direct scanning of directories with a two-step approach (first: create filename list, second: scan)
cline _________________________________________ Copyright (C) 2013 Mike Becker Contents: 1) About ................................................................... 13 2) Build instructions ...................................................... 25 3) Usage example ........................................................... 41 4) Contact Information ..................................................... 50 5) License ................................................................. 56 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 _________________________________________________________ To build cline with gcc navigate to the root directory of the project and type: make To rebuild cline type: make clean all To install cline type (as root): make install If you build cline with mingw under Windows, you need to type: make CONF=mingw or make CONF=mingw clean all 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) Contact Information ________________________________________________________ You can contact us by either one of the following mail addresses: universe@uap-core.de - Direct developer contact info@uap-core.de - Generic mail address 5) License ____________________________________________________________________ Copyright 2013 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.