summaryrefslogtreecommitdiff
path: root/scripts/line_count.sh
blob: 215c7d08582e31edc61751a1c24112799bf69d92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /usr/bin/env sh
export LC_ALL="C"
find ./src ./scripts ./env -type f \
  -not -path "*__pycache__*" \
  -not -path "./env/msvc-root/*" \
  -not -path "./env/nixpkgs-patches/*" \
  -not -path "./src/fruits/droid/*" \
  -not -path "./src/portal/cpy/portal.c" \
  -not -path "./src/portal/cpy/portal.h" \
  -not -path "./src/portal/patches/*" \
  -not -path "./src/portal/py/.mypy_cache/*" \
  -not -path "./src/portal/py/tests/*" \
  -not -path "./src/portal/vendor/*" \
  -exec sloccount {} +

#-exec sed -i 's///g' {} +