universe@37: cline universe@37: _________________________________________ universe@48: Copyright (C) 2017 Mike Becker universe@37: universe@37: Contents: universe@46: 1) About ................................................................... 12 universe@46: 2) Build instructions ...................................................... 24 universe@48: 3) Usage example ........................................................... 35 universe@48: 4) License ................................................................. 44 universe@37: universe@37: universe@37: 1) About ______________________________________________________________________ universe@37: universe@37: cline is a command line tool that counts code lines in your project folder. It universe@37: is designed to recursively find any source file matching specific rules and universe@37: count the line breaks within that file. You may specify file suffixes to include universe@37: or exclude as well as regular expressions for code lines that shall be excluded universe@37: (e.g. to exclude comments). By default a heuristic algorithm skips binary files. universe@37: You may configure the restrictiveness of this algorithm with command line universe@37: options. universe@37: universe@37: Type cline --help for further information. universe@37: universe@38: 2) Build instructions _________________________________________________________ universe@38: universe@48: In release version you can just universe@48: ./configure && make universe@38: universe@48: After building you get a system wide install with universe@48: sudo make install universe@38: universe@48: To enable a debug build, configure with universe@48: ./configure --enable-debug universe@38: universe@38: 3) Example usage ______________________________________________________________ universe@38: universe@38: You can test cline right away with the cline project files. Just type: universe@38: cline -rms .c,.h --exclude-cstyle-comments universe@38: universe@38: This will find any .c or .h file recursively in the cline project folder and universe@38: won't display other files (-m option). It will also skip comments when counting universe@38: lines. universe@38: universe@46: 4) License ____________________________________________________________________ universe@37: universe@48: Copyright 2017 Mike Becker. All rights reserved. universe@37: universe@37: Redistribution and use in source and binary forms, with or without universe@37: modification, are permitted provided that the following conditions are met: universe@37: universe@37: 1. Redistributions of source code must retain the above copyright universe@37: notice, this list of conditions and the following disclaimer. universe@37: universe@37: 2. Redistributions in binary form must reproduce the above copyright universe@37: notice, this list of conditions and the following disclaimer in the universe@37: documentation and/or other materials provided with the distribution. universe@37: universe@37: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" universe@37: AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE universe@37: IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE universe@37: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE universe@37: FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL universe@37: DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR universe@37: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER universe@37: CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, universe@37: OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE universe@37: OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. universe@46: