Create Lint Libraries?

Chip Salzenberg chip at ateng.ateng.com
Sat May 20 05:29:51 AEST 1989


According to toppin at 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 <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  mkllib mklall
# Wrapped by chip at ateng on Fri May 19 15:28:24 1989
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'mkllib' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'mkllib'\"
else
echo shar: Extracting \"'mkllib'\" \(265 characters\)
sed "s/^X//" >'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             <chip at ateng.com> or <uunet!ateng!chip>
A T Engineering             Me?  Speak for my company?  Surely you jest!
	  "It's no good.  They're tapping the lines."



More information about the Comp.unix.xenix mailing list