File: scspell

package info (click to toggle)
p4est 2.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,536 kB
  • sloc: ansic: 87,528; makefile: 855; sh: 635; perl: 272; python: 226; awk: 40; javascript: 23
file content (26 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /bin/bash

CSP=codespell
IGN=doc/codespell_ignore.txt
CSO="-I $IGN $@"

function bdie {
  echo "Error: $1" >&2
  exit 1
}

if test ! -r "$IGN" ; then
  bdie "execute from toplevel source directory"
fi
if test ! -r src/sc.h ; then
  bdie "execute from toplevel source directory"
fi

if ! which "$CSP" > /dev/null ; then
  bdie "codespell not found"
fi

exec "$CSP" $CSO    \
  src/sc*{c,h}      \
  test/*.c          \
  example/**/*.c