1.0.13.52: Fix typo in bit-vector.impure-cload.lisp
[sbcl/simd.git] / tools-for-build / whitespacely-canonical-filenames
blobff8f4ef88b76137a6b5a020626e886bd8648c230
1 #!/bin/sh
3 # (a script to be run in the root directory of the distribution,
4 # probably as part of an enclosing do-something-with-whitespace script)
6 # Print to stdout the names of files whose whitespace we (SBCLers)
7 # try to keep canonical.
9 # glob patterns for source files in languages for which the
10 # canonicalization is safe (not affecting meaning, at least given the
11 # conservative syntax used in SBCL sources)
12 source_extensions='.lisp .lisp-expr .c .h'
13 # other candidates:
14 # .sh: if ./make.sh is altered, Bad Things happen
15 # ?
17 stamp_file=whitespace-stamp
19 if [ -e $stamp_file ]; then
20 find_opt="-newer $stamp_file"
21 else
22 find_opt=""
25 for source_extension in $source_extensions; do
26 find . \( \
27 -name _darcs -o \
28 -name '{arch}' -o \
29 -name CVS -o \
30 -name .hg -o \
31 -name .svn \) -type d -prune -o \
32 $find_opt -name '*'$source_extension -print
33 done
35 touch $stamp_file