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

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