|
|
1.1 root 1: #! /bin/sh
2: #
3: # @(#)SHELL 1.10 (Berkeley) 8/24/89
4: #
5: L=/usr/libexec/lintpass T=/tmp/lint.$$
6: PATH=/bin:/usr/bin:/usr/pgrm
7: O="-C -Dlint"
8: X= P=unix LL=/usr/libdata/lint
9: C=
10: trap "rm -f $T; exit" 1 2 15
11: for A in $*
12: do
13: case $A in
14: *.ln) cat $A >>$T ;;
15: -l*) cat $LL/llib$A.ln >>$T ;;
16: -C?*) P=
17: C=`echo $A | sed -e s/-C/llib-l/`
18: X="$X -L -C$C" ;;
19: -[IDU]*)O="$O $A" ;;
20: -[ORpg]*)
21: ;;
22: -*) X="$X $A"
23: case $A in
24: -*n*) P= ;;
25: -*p*) P=port ;;
26: esac ;;
27: *) echo "$A:"
28: (cpp $O $A | ${L}1 $X >>$T)2>&1
29: esac
30: done
31: case $P in
32: unix) cat $LL/llib-lc.ln >>$T ;;
33: port) cat $LL/llib-port.ln >>$T ;;
34: "") cat /dev/null >>$T ;;
35: esac
36: case $C in
37: "") ${L}2 $T $X ;;
38: *) cp $T $C.ln ;;
39: esac
40: rm -f $T
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.