metrics.sh 327 B

1234567891011121314151617
  1. #!/bin/sh
  2. basedir="$(dirname "$0")"
  3. [ "$(echo "$basedir" | cut -c1)" = '/' ] || basedir="$PWD/$basedir"
  4. [ $# -ge 1 ] || {
  5. echo "Usage: $0 [CLOC-OPTS] DIRECTORY" >&2
  6. exit 1
  7. }
  8. set -e
  9. cloc --exclude-dir=build,dist,release-archives,icons \
  10. --read-lang-def="${basedir}/cloc-lang-awl.txt" \
  11. --quiet --progress-rate=0 \
  12. "$@"