|
|
@@ -29,7 +29,11 @@ fi |
|
|
|
failure=0 |
|
|
|
for dir in caca src cxx examples ruby tools; do |
|
|
|
pushd ../$dir >/dev/null |
|
|
|
for x in $(make echo-sources); do |
|
|
|
for x in $(make -s echo-sources); do |
|
|
|
case "$x" in |
|
|
|
*.c|*.cpp|*.h|*.m) ;; |
|
|
|
*) continue ;; |
|
|
|
esac |
|
|
|
if grep '[[:space:]]$' "$x" >/dev/null 2>&1; then |
|
|
|
echo "error: $dir/$x contains trailing spaces" |
|
|
|
failure=1 |
|
|
|