2 ################################################################################
3 # Copyright 1996 by Thomas E. Dickey <dickey@clark.net> #
4 # All Rights Reserved. #
6 # Permission to use, copy, modify, and distribute this software and its #
7 # documentation for any purpose and without fee is hereby granted, provided #
8 # that the above copyright notice appear in all copies and that both that #
9 # copyright notice and this permission notice appear in supporting #
10 # documentation, and that the name of the above listed copyright holder(s) not #
11 # be used in advertising or publicity pertaining to distribution of the #
12 # software without specific, written prior permission. THE ABOVE LISTED #
13 # COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, #
14 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT #
15 # SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY SPECIAL, #
16 # INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM #
17 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE #
18 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR #
19 # PERFORMANCE OF THIS SOFTWARE. #
20 ################################################################################
21 # $Id: tdlint,v 1.3 1996/07/15 00:47:21 tom Exp $
23 # Lint-script that allows user's own lint libraries, in addition to the ones
24 # installed in the system.
31 if test -z "$ARCH" ; then
32 echo '? uname not found'
49 # LIBDIR=$HOME/lib/$ARCH/lint ;export LIBDIR
50 for p in $HOME/lib/$ARCH/lint /usr/lib/lint /usr/lib
63 DIRS="`echo $1|sed -e 's/^-L//'` $DIRS"
66 lib="llib-l`echo $1 | sed -e 's/^-l//'`.ln"
70 echo -n testing $p/$lib
82 echo "ignored library $1"
100 eval lint $OPT $FILES $LIBS