~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to dbug/mklintlib.sh

  • Committer: Brian Aker
  • Date: 2008-07-18 20:10:26 UTC
  • mfrom: (51.3.29 remove-dbug)
  • Revision ID: brian@tangent.org-20080718201026-tto5golt0xhwqe4a
Merging in Jay's final patch on dbug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
# Warning - first line left blank for sh/csh/ksh compatibility.  Do not
3
 
# remove it.  fnf@Unisoft
4
 
 
5
 
# mklintlib --- make a lint library, under either System V or 4.2 BSD
6
 
#
7
 
# usage:  mklintlib <infile> <outfile>
8
 
#
9
 
 
10
 
if test $# -ne 2
11
 
then
12
 
        echo "usage: mklintlib <infile> <outfile>"
13
 
        exit 1
14
 
fi
15
 
 
16
 
if grep SIGTSTP /usr/include/signal.h >/dev/null
17
 
then                                                    # BSD
18
 
        if test -r /usr/include/whoami.h                # 4.1
19
 
        then
20
 
                /lib/cpp -C -Dlint $1 >hlint
21
 
                (/usr/lib/lint/lint1 <hlint >$2) 2>&1 | grep -v warning
22
 
        else                                            # 4.2
23
 
                lint -Cxxxx $1
24
 
                mv llib-lxxxx.ln $2
25
 
        fi
26
 
else                                                    # USG
27
 
        cc -E -C -Dlint $1 | /usr/lib/lint1 -vx -Hhlint >$2
28
 
        rm -f hlint
29
 
fi
30
 
exit 0                                                  # don't kill make