~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to dbug/mklintlib.sh

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

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