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