Clean up build system and update copyright information.
git-svn-id: svn://svn.zoy.org/elk/trunk@274 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# $Id$
|
||||
|
||||
EXTRA_DIST = check-build
|
||||
|
||||
TESTS = check-build
|
||||
|
||||
Executable
+35
@@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
|
||||
ret=0
|
||||
|
||||
#
|
||||
# Check that we have no tabs or trailing spaces in the source code
|
||||
#
|
||||
failure=0
|
||||
for dir in lib/misc lib/unix lib/xlib lib/xwidgets lib/xwidgets/motif \
|
||||
lib/xwidgets/xaw src; do
|
||||
pushd ../$dir >/dev/null
|
||||
for x in $(make echo-sources); do
|
||||
if grep '[[:space:]]$' "$x" >/dev/null 2>&1; then
|
||||
echo "error: $dir/$x contains trailing spaces"
|
||||
failure=1
|
||||
fi
|
||||
if grep ' ' "$x" >/dev/null 2>&1; then
|
||||
echo "error: $dir/$x contains tabs"
|
||||
failure=1
|
||||
fi
|
||||
done
|
||||
popd >/dev/null
|
||||
done
|
||||
if test "$failure" != "0"; then
|
||||
ret=1
|
||||
else
|
||||
echo "0 errors in source code"
|
||||
fi
|
||||
|
||||
if test "$ret" != "0"; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user