mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-10-01 20:12:52 -04:00
10 lines
268 B
Bash
Executable File
10 lines
268 B
Bash
Executable File
#!/bin/sh
|
|
# Fail if any C/C++ source in soh/ outside soh/include contains a tab.
|
|
|
|
cd "$(dirname "$0")/.." || exit 2
|
|
|
|
if git grep -n "$(printf '\t')" -- 'soh/*.c' 'soh/*.cpp' 'soh/*.h' 'soh/*.hpp' ':!soh/include'; then
|
|
echo "replace tabs with spaces"
|
|
exit 1
|
|
fi
|