File:  [Coherent Logic Development] / freem / loc.sh
Revision 1.1: download - view: text, annotated - select for diffs
Sun Jan 19 02:04:04 2025 UTC (2 months, 1 week ago) by snw
CVS tags: MAIN, HEAD
Initial revision

#!/bin/bash

TOTAL=0
LOC=0

for FILE in src/*.[ch] mlib/*.m
do
    LOC=$(cat "${FILE}" | wc -l)
    echo "${FILE}:  ${LOC} lines"
    TOTAL=$((${TOTAL} + ${LOC}))
done

echo ""
echo "${TOTAL} total LOC"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>