Fix make-array transforms.
[sbcl.git] / tools-for-build / canonicalize-whitespace
1 #!/bin/sh
2
3 # (a script to be run in the root directory of the distribution)
4 #
5 # Convert tabs to spaces and delete trailing whitespace in files
6 # which we can safely assume to be source files in appropriate languages.
7
8 if ! expand -t 8 < $DEVNULL
9 then
10     # If we're building with MSYS on Windows GNU expand is not available,
11     # and what we get is Microsoft Expand, which is something quite different,
12     # so bail out.
13     exit
14 fi
15
16 tools-for-build/whitespacely-canonical-filenames \
17   | xargs tools-for-build/canonicalize-whitespace-1