]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/byacc/test/run_lint.sh
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / contrib / byacc / test / run_lint.sh
1 #!/bin/sh
2 # $Id: run_lint.sh,v 1.1 2010/06/08 09:00:58 tom Exp $
3 # vi:ts=4 sw=4:
4
5 # run lint on each of the ".c" files in the test directory
6
7 if test $# = 1
8 then
9         PROG_DIR=`pwd`
10         TEST_DIR=$1
11 else
12         PROG_DIR=..
13         TEST_DIR=.
14 fi
15
16 echo '** '`date`
17 for i in ${TEST_DIR}/*.c
18 do
19         make -f $PROG_DIR/makefile lint C_FILES=$i srcdir=$PROG_DIR
20 done