Annotation of 43BSD/usr.bin/lint/SHELL, revision 1.1.1.1

1.1       root        1: #! /bin/sh
                      2: #
                      3: #      @(#)SHELL       1.7     (Berkeley)      3/11/85
                      4: #
                      5: L=/usr/lib/lint/lint T=/tmp/lint.$$ PATH=/bin:/usr/bin O="-C -Dlint"
                      6: X= P=unix LL=/usr/lib/lint
                      7: C=
                      8: trap "rm -f $T; exit" 1 2 15
                      9: for A in $*
                     10: do
                     11:        case $A in
                     12:        *.ln)   cat $A >>$T ;;
                     13:        -l*)    cat $LL/llib$A.ln >>$T ;;
                     14:        -C?*)   P=
                     15:                C=`echo $A | sed -e s/-C/llib-l/`
                     16:                X="$X -L -C$C" ;;
                     17:        -[IDU]*)O="$O $A" ;;
                     18:        -O)     ;;
                     19:        -X)     LL=/usr/src/usr.bin/lint
                     20:                L=/usr/src/usr.bin/lint/lpass ;;
                     21:        -*)     X="$X $A"
                     22:                case $A in
                     23:                -*n*)   P= ;;
                     24:                -*p*)   P=port ;;
                     25:                esac ;;
                     26:        *)      echo "$A:"
                     27:                (/lib/cpp $O $A | ${L}1 $X >>$T)2>&1
                     28:        esac
                     29:        done
                     30: case $P in
                     31:        unix)   cat $LL/llib-lc.ln >>$T ;;
                     32:        port)   cat $LL/llib-port.ln >>$T ;;
                     33:        "")     cat /dev/null >>$T ;;
                     34:        esac
                     35: case $C in
                     36:        "")     ${L}2 $T $X ;;
                     37:        *)      cp $T $C.ln ;;
                     38:        esac
                     39: rm -f $T

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.