Annotation of 43BSDReno/contrib/isode-beta/util/inst-lint.sh, revision 1.1.1.1

1.1       root        1: : run this script through /bin/sh
                      2: 
                      3: M=BSD42        O= L=/usr/lib/lint
                      4: 
                      5: for A in $*
                      6: do
                      7:     case $A in
                      8:        -bsd42)
                      9:                M=BSD42
                     10:                ;;
                     11: 
                     12:        -bsd44)
                     13:                M=BSD44
                     14:                ;;
                     15: 
                     16:        -sys5)  M=SYS5
                     17:                exit 0
                     18:                if test ! -f ${L}/lint1; then
                     19:                    L=/usr/lib
                     20:                    if test ! -f ${L}/lint1; then
                     21:                        echo "inst-lint: unable to find lint1" 1>&2
                     22:                        exit 0
                     23:                    fi
                     24:                fi
                     25:                ;;
                     26: 
                     27:        -mips)  M=SYS5
                     28:                ;;
                     29: 
                     30:        -ros)   M=ROS
                     31:                ;;
                     32: 
                     33:        -*)     O="$O $A"
                     34:                ;;
                     35: 
                     36:        *)      case $M in
                     37:                    BSD42)  echo /lib/cpp -C -Dlint $O $A \| \
                     38:                                /usr/lib/lint/lint1 -v \> $A.ln
                     39:                            /lib/cpp -C -Dlint $O $A | \
                     40:                                /usr/lib/lint/lint1 -v > $A.ln
                     41:                            ;;
                     42: 
                     43:                    BSD44)  echo lint -Clint $O $A
                     44:                            lint -Clint $O $A
                     45:                            echo mv llib-lint.ln $A.ln
                     46:                            mv llib-lint.ln $A.ln
                     47:                            ;;
                     48: 
                     49:                    SYS5)   echo /bin/cc -E -C -Dlint $O $A \| \
                     50:                                ${L}/lint1 -v \> $A.ln
                     51:                            /bin/cc -E -C -Dlint $O $A | \
                     52:                                ${L}/lint1 -v > $A.ln
                     53:                            ;;
                     54: 
                     55:                    MIPS)   echo lint -o /usr/lib/cmplrs/cc/lint/$A.ln $O $A
                     56:                            lint -o /usr/lib/cmplrs/cc/lint/$A.ln $O $A
                     57:                            ;;
                     58: 
                     59:                    ROS)    echo lint -c -v $O $A
                     60:                            lint -c -v $O $A
                     61:                            F="`basename $A`"
                     62:                            if [ $F != $A ]; then
                     63:                                echo mv $F.ln $A.ln
                     64:                                mv $F.ln $A.ln
                     65:                            fi
                     66:                            ;;
                     67: 
                     68:                    *)      echo "inst-lint: mode botch" 1>&2
                     69:                            exit 1
                     70:                            ;;
                     71:                esac
                     72:                ;;
                     73:     esac
                     74: done
                     75: 
                     76: exit 0

unix.superglobalmegacorp.com

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