Path: utzoo!attcan!uunet!ateng!chip From: chip@ateng.ateng.com (Chip Salzenberg) Newsgroups: comp.unix.xenix Subject: Re: Create Lint Libraries? Keywords: lint Message-ID: <1989May19.152951.27404@ateng.ateng.com> Date: 19 May 89 19:29:51 GMT References: <202@melpar.UUCP> Organization: A T Engineering, Tampa, FL Lines: 76 According to toppin@melpar.UUCP (Doug Toppin): >I have been trying to create a lint library with >an SCO Xenix 386 system and have not been able to >do it properly. I have not been able to find an example >on how to use the '-o' option with lint. Here are the scripts I use with Xenix/286. They should be close to what's needed for Xenix/386; perhaps the line with "-LARGE" can be removed. #! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh 'mkllib' <<'END_OF_FILE' X: llib X# Generate a lint library X Xcd /usr/lib X Xfor a Xdo X LIB=llib$a X X if [ ! -f $LIB ] X then X echo >&2 "$LIB: no such file" X continue X fi X X ln $LIB $LIB.c X ( X set -x X lint -n -o$a $LIB.c X lint -n -o$a -LARGE $LIB.c X ) X rm $LIB.c Xdone END_OF_FILE if test 265 -ne `wc -c <'mkllib'`; then echo shar: \"'mkllib'\" unpacked with wrong size! fi chmod +x 'mkllib' # end of 'mkllib' fi if test -f 'mklall' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'mklall'\" else echo shar: Extracting \"'mklall'\" \(88 characters\) sed "s/^X//" >'mklall' <<'END_OF_FILE' X: mklall X# Make all lint libraries X X./mkllib c curses dbm m port tcap termcap termlib x END_OF_FILE if test 88 -ne `wc -c <'mklall'`; then echo shar: \"'mklall'\" unpacked with wrong size! fi chmod +x 'mklall' # end of 'mklall' fi echo shar: End of shell archive. exit 0 -- Chip Salzenberg or A T Engineering Me? Speak for my company? Surely you jest! "It's no good. They're tapping the lines."