387da3a420
Split out the command into a separate `Makefile` that doesn't use Automake so we can invoke it early. Closes: #1674 Approved by: dustymabe
13 lines
229 B
Bash
Executable File
13 lines
229 B
Bash
Executable File
#!/bin/sh
|
|
set -xeuo pipefail
|
|
|
|
echo "Checking for tabs:"
|
|
(git grep -E '^ +' -- '*.[ch]' || true) > tabdamage.txt
|
|
if test -s tabdamage.txt; then
|
|
echo "Error: tabs in .[ch] files:"
|
|
cat tabdamage.txt
|
|
exit 1
|
|
fi
|
|
|
|
echo "ok"
|