xref: /freebsd/contrib/byacc/test/run_lint.sh (revision 8d20be1e22095c27faf8fe8b2f0d089739cc742e)
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
7if test $# = 1
8then
9	PROG_DIR=`pwd`
10	TEST_DIR=$1
11else
12	PROG_DIR=..
13	TEST_DIR=.
14fi
15
16echo '** '`date`
17for i in ${TEST_DIR}/*.c
18do
19	make -f $PROG_DIR/makefile lint C_FILES=$i srcdir=$PROG_DIR
20done
21