head	1.1;
branch	1.1.1;
access;
symbols
	RELENG_8_4:1.1.1.2.0.56
	RELENG_9_1_0_RELEASE:1.1.1.2
	RELENG_9_1:1.1.1.2.0.54
	RELENG_9_1_BP:1.1.1.2
	RELENG_8_3_0_RELEASE:1.1.1.2
	RELENG_8_3:1.1.1.2.0.52
	RELENG_8_3_BP:1.1.1.2
	RELENG_9_0_0_RELEASE:1.1.1.2
	RELENG_9_0:1.1.1.2.0.50
	RELENG_9_0_BP:1.1.1.2
	RELENG_9:1.1.1.2.0.48
	RELENG_9_BP:1.1.1.2
	RELENG_7_4_0_RELEASE:1.1.1.2
	RELENG_8_2_0_RELEASE:1.1.1.2
	RELENG_7_4:1.1.1.2.0.46
	RELENG_7_4_BP:1.1.1.2
	RELENG_8_2:1.1.1.2.0.44
	RELENG_8_2_BP:1.1.1.2
	RELENG_8_1_0_RELEASE:1.1.1.2
	RELENG_8_1:1.1.1.2.0.42
	RELENG_8_1_BP:1.1.1.2
	RELENG_7_3_0_RELEASE:1.1.1.2
	RELENG_7_3:1.1.1.2.0.40
	RELENG_7_3_BP:1.1.1.2
	RELENG_8_0_0_RELEASE:1.1.1.2
	RELENG_8_0:1.1.1.2.0.38
	RELENG_8_0_BP:1.1.1.2
	RELENG_8:1.1.1.2.0.36
	RELENG_8_BP:1.1.1.2
	RELENG_7_2_0_RELEASE:1.1.1.2
	RELENG_7_2:1.1.1.2.0.34
	RELENG_7_2_BP:1.1.1.2
	RELENG_7_1_0_RELEASE:1.1.1.2
	RELENG_6_4_0_RELEASE:1.1.1.2
	RELENG_7_1:1.1.1.2.0.32
	RELENG_7_1_BP:1.1.1.2
	RELENG_6_4:1.1.1.2.0.30
	RELENG_6_4_BP:1.1.1.2
	v5_6_20080503:1.1.1.2
	RELENG_7_0_0_RELEASE:1.1.1.2
	v5_6_20080209:1.1.1.2
	RELENG_6_3_0_RELEASE:1.1.1.2
	v5_6_20071222:1.1.1.2
	RELENG_7_0:1.1.1.2.0.28
	RELENG_7_0_BP:1.1.1.2
	RELENG_6_3:1.1.1.2.0.26
	RELENG_6_3_BP:1.1.1.2
	RELENG_7:1.1.1.2.0.24
	RELENG_7_BP:1.1.1.2
	v5_6_20061217:1.1.1.2
	RELENG_6_2_0_RELEASE:1.1.1.2
	RELENG_6_2:1.1.1.2.0.22
	RELENG_6_2_BP:1.1.1.2
	RELENG_5_5_0_RELEASE:1.1.1.2
	RELENG_5_5:1.1.1.2.0.20
	RELENG_5_5_BP:1.1.1.2
	RELENG_6_1_0_RELEASE:1.1.1.2
	RELENG_6_1:1.1.1.2.0.18
	RELENG_6_1_BP:1.1.1.2
	RELENG_6_0_0_RELEASE:1.1.1.2
	RELENG_6_0:1.1.1.2.0.16
	RELENG_6_0_BP:1.1.1.2
	RELENG_6:1.1.1.2.0.14
	RELENG_6_BP:1.1.1.2
	RELENG_5_4_0_RELEASE:1.1.1.2
	RELENG_5_4:1.1.1.2.0.12
	RELENG_5_4_BP:1.1.1.2
	RELENG_4_11_0_RELEASE:1.1.1.1
	RELENG_4_11:1.1.1.1.0.20
	RELENG_4_11_BP:1.1.1.1
	RELENG_5_3_0_RELEASE:1.1.1.2
	RELENG_5_3:1.1.1.2.0.10
	RELENG_5_3_BP:1.1.1.2
	RELENG_5:1.1.1.2.0.8
	RELENG_5_BP:1.1.1.2
	RELENG_4_10_0_RELEASE:1.1.1.1
	RELENG_4_10:1.1.1.1.0.18
	RELENG_4_10_BP:1.1.1.1
	RELENG_5_2_1_RELEASE:1.1.1.2
	RELENG_5_2_0_RELEASE:1.1.1.2
	RELENG_5_2:1.1.1.2.0.6
	RELENG_5_2_BP:1.1.1.2
	RELENG_4_9_0_RELEASE:1.1.1.1
	RELENG_4_9:1.1.1.1.0.16
	RELENG_4_9_BP:1.1.1.1
	RELENG_5_1_0_RELEASE:1.1.1.2
	RELENG_5_1:1.1.1.2.0.4
	RELENG_5_1_BP:1.1.1.2
	RELENG_4_8_0_RELEASE:1.1.1.1
	RELENG_4_8:1.1.1.1.0.14
	RELENG_4_8_BP:1.1.1.1
	RELENG_5_0_0_RELEASE:1.1.1.2
	RELENG_5_0:1.1.1.2.0.2
	RELENG_5_0_BP:1.1.1.2
	RELENG_4_7_0_RELEASE:1.1.1.1
	RELENG_4_7:1.1.1.1.0.12
	RELENG_4_7_BP:1.1.1.1
	RELENG_4_6_2_RELEASE:1.1.1.1
	RELENG_4_6_1_RELEASE:1.1.1.1
	v5_2_20020615:1.1.1.2
	RELENG_4_6_0_RELEASE:1.1.1.1
	RELENG_4_6:1.1.1.1.0.10
	RELENG_4_6_BP:1.1.1.1
	v5_2_20020518:1.1.1.2
	RELENG_4_5_0_RELEASE:1.1.1.1
	RELENG_4_5:1.1.1.1.0.8
	RELENG_4_5_BP:1.1.1.1
	RELENG_4_4_0_RELEASE:1.1.1.1
	RELENG_4_4:1.1.1.1.0.6
	RELENG_4_4_BP:1.1.1.1
	v5_2_20010512:1.1.1.2
	RELENG_4_3_0_RELEASE:1.1.1.1
	RELENG_4_3:1.1.1.1.0.4
	RELENG_4_3_BP:1.1.1.1
	RELENG_4_2_0_RELEASE:1.1.1.1
	v5_1_20001009:1.1.1.1
	RELENG_4_1_1_RELEASE:1.1.1.1
	PRE_SMPNG:1.1.1.1
	RELENG_4_1_0_RELEASE:1.1.1.1
	v5_1_20000701:1.1.1.1
	RELENG_4_0_0_RELEASE:1.1.1.1
	RELENG_4:1.1.1.1.0.2
	RELENG_4_BP:1.1.1.1
	v5_0:1.1.1.1
	v5_0_990821:1.1.1.1
	NCURSES:1.1.1;
locks; strict;
comment	@# @;


1.1
date	99.08.24.01.06.41;	author peter;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.08.24.01.06.41;	author peter;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.05.17.08.21.03;	author peter;	state Exp;
branches
	1.1.1.2.56.1;
next	;

1.1.1.2.56.1
date	2001.05.17.08.21.03;	author svnexp;	state dead;
branches;
next	1.1.1.2.56.2;

1.1.1.2.56.2
date	2013.03.28.13.01.41;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@#!/bin/sh
##############################################################################
# Copyright (c) 1998 Free Software Foundation, Inc.                          #
#                                                                            #
# Permission is hereby granted, free of charge, to any person obtaining a    #
# copy of this software and associated documentation files (the "Software"), #
# to deal in the Software without restriction, including without limitation  #
# the rights to use, copy, modify, merge, publish, distribute, distribute    #
# with modifications, sublicense, and/or sell copies of the Software, and to #
# permit persons to whom the Software is furnished to do so, subject to the  #
# following conditions:                                                      #
#                                                                            #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software.                        #
#                                                                            #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
# DEALINGS IN THE SOFTWARE.                                                  #
#                                                                            #
# Except as contained in this notice, the name(s) of the above copyright     #
# holders shall not be used in advertising or otherwise to promote the sale, #
# use or other dealings in this Software without prior written               #
# authorization.                                                             #
##############################################################################
#
# Author: Thomas E. Dickey <dickey@@clark.net> 1996,1997
#
# $Id: makellib,v 1.7 1998/02/11 12:13:50 tom Exp $
# System-dependent wrapper for 'lint' that creates a lint-library via the
# following method (XXX is the name of the library):
#	a.  If the file llib-lXXX doesn't exist, create it using the make-rule
#	b.  Process llib-lXXX with the system's lint utility, making
#	    llib-lXXX.ln
#	c.  Install llib-lXXX.ln in the lib directory.
#
# Using the intermediate file llib-lXXX bypasses a weakness of lint (passing
# through warning messages from the original source-files).
#
# There are two drawbacks to this approach:
#	a.  On a few systems, you'll have to manually-edit the llib-lXXX file
#	    to get a usable lint-library (not all C-preprocessors work well).
#	b.  The system's lint utility won't recognize -lXXX as a lint-library
#	    (Use tdlint as a wrapper; it's designed for this).
#
# Parameters:
#	$1 = library name
#	$* = C-preprocessor options
#
ARCH=`uname -s`
if test "x$ARCH" = "xSunOS" ; then
	case `uname -r` in
	5.*)	ARCH=Solaris
		;;
	esac
fi
#
DST="$HOME/lib/$ARCH/lint"
OPT=""
LLIB=""
llib=""
#
while test $# != 0
do
	case $1 in
	-L*)
		DST="$DST `echo $1|sed -e 's/^-L//'`"
		;;
	-*)
		OPT="$OPT $1"
		;;
	*)
		if test -z "$LLIB"
		then
			LLIB=$1
		else
			llib=llib-l$1
		fi
		;;
	esac
	shift
done

if test -z "$LLIB"
then
	echo '? no library name specified'
	exit 1
elif test -z "$llib"
then
	llib="llib-l$LLIB"
fi

if test ! -f $llib ; then
	if ( make $llib )
	then
		:
	else
		exit 1
	fi
fi

rm -f $llib.ln $llib.c
TARGET=$LLIB

case "$ARCH" in
AIX)
	CREATE="-uvxo$LLIB -Nn4000"
	TARGET=$llib.c
	ln $llib $TARGET
	;;
Solaris)
	CREATE="-C$llib"
	TARGET=$llib.c
	ln $llib $TARGET
	;;
CLIX)
	CREATE="-DLINTLIBRARY -vxo$LLIB"
	TARGET=$llib.c
	ln $llib $TARGET
	;;
IRIX*)
	CREATE="-DLINTLIBRARY -vxyo$LLIB"
	TARGET=$llib.c
	ln $llib $TARGET
	;;
UNIX_SV)
	CREATE="-DLINTLIBRARY -vxyo$LLIB"
	TARGET=$llib.c
	ln $llib $TARGET
	;;
*)
	echo "Sorry.  I do not know how to build a lint-library for $ARCH"
	exit 1
esac

echo OPT    "$OPT"
echo TARGET "$TARGET"
echo LIBNAME "$llib"
if ( lint $CREATE $OPT $TARGET )
then
	if test -f $llib.ln
	then
		for p in $HOME/lib $HOME/lib/$ARCH $HOME/lib/$ARCH/lint
		do
			if test ! -d $p
			then
				mkdir $p
			fi
		done
		for p in $DST
		do
			cp $llib.ln $p/
		done
		rm -f $llib.ln
	fi
fi
if test "x$TARGET" = "x$llib.c" ; then
	rm -f $TARGET
fi
@


1.1.1.1
log
@Import unmodified (but trimmed) ncurses 5.0 prerelease 990821.
This contains the full eti (panel, form, menu) extensions.
bmake glue to follow.

Obtained from:	ftp://ftp.clark.net/pub/dickey/ncurses
@
text
@@


1.1.1.2
log
@Import ncurses-5.2-20010512 onto the vendor branch

Obtained from: ftp://dickey.his.com/ncurses/
@
text
@d3 1
a3 1
# Copyright (c) 1998,2000 Free Software Foundation, Inc.                     #
d30 1
a30 1
# Author: Thomas E. Dickey 1996,1997,2000
d32 1
a32 1
# $Id: makellib,v 1.8 2000/10/28 21:37:10 tom Exp $
a115 5
	TARGET=$llib.c
	ln $llib $TARGET
	;;
FreeBSD)
	CREATE="-g -z -C$LLIB"
@


1.1.1.2.56.1
log
@file makellib was added on branch RELENG_8_4 on 2013-03-28 13:01:41 +0000
@
text
@d1 167
@


1.1.1.2.56.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 167
#!/bin/sh
##############################################################################
# Copyright (c) 1998,2000 Free Software Foundation, Inc.                     #
#                                                                            #
# Permission is hereby granted, free of charge, to any person obtaining a    #
# copy of this software and associated documentation files (the "Software"), #
# to deal in the Software without restriction, including without limitation  #
# the rights to use, copy, modify, merge, publish, distribute, distribute    #
# with modifications, sublicense, and/or sell copies of the Software, and to #
# permit persons to whom the Software is furnished to do so, subject to the  #
# following conditions:                                                      #
#                                                                            #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software.                        #
#                                                                            #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
# DEALINGS IN THE SOFTWARE.                                                  #
#                                                                            #
# Except as contained in this notice, the name(s) of the above copyright     #
# holders shall not be used in advertising or otherwise to promote the sale, #
# use or other dealings in this Software without prior written               #
# authorization.                                                             #
##############################################################################
#
# Author: Thomas E. Dickey 1996,1997,2000
#
# $Id: makellib,v 1.8 2000/10/28 21:37:10 tom Exp $
# System-dependent wrapper for 'lint' that creates a lint-library via the
# following method (XXX is the name of the library):
#	a.  If the file llib-lXXX doesn't exist, create it using the make-rule
#	b.  Process llib-lXXX with the system's lint utility, making
#	    llib-lXXX.ln
#	c.  Install llib-lXXX.ln in the lib directory.
#
# Using the intermediate file llib-lXXX bypasses a weakness of lint (passing
# through warning messages from the original source-files).
#
# There are two drawbacks to this approach:
#	a.  On a few systems, you'll have to manually-edit the llib-lXXX file
#	    to get a usable lint-library (not all C-preprocessors work well).
#	b.  The system's lint utility won't recognize -lXXX as a lint-library
#	    (Use tdlint as a wrapper; it's designed for this).
#
# Parameters:
#	$1 = library name
#	$* = C-preprocessor options
#
ARCH=`uname -s`
if test "x$ARCH" = "xSunOS" ; then
	case `uname -r` in
	5.*)	ARCH=Solaris
		;;
	esac
fi
#
DST="$HOME/lib/$ARCH/lint"
OPT=""
LLIB=""
llib=""
#
while test $# != 0
do
	case $1 in
	-L*)
		DST="$DST `echo $1|sed -e 's/^-L//'`"
		;;
	-*)
		OPT="$OPT $1"
		;;
	*)
		if test -z "$LLIB"
		then
			LLIB=$1
		else
			llib=llib-l$1
		fi
		;;
	esac
	shift
done

if test -z "$LLIB"
then
	echo '? no library name specified'
	exit 1
elif test -z "$llib"
then
	llib="llib-l$LLIB"
fi

if test ! -f $llib ; then
	if ( make $llib )
	then
		:
	else
		exit 1
	fi
fi

rm -f $llib.ln $llib.c
TARGET=$LLIB

case "$ARCH" in
AIX)
	CREATE="-uvxo$LLIB -Nn4000"
	TARGET=$llib.c
	ln $llib $TARGET
	;;
Solaris)
	CREATE="-C$llib"
	TARGET=$llib.c
	ln $llib $TARGET
	;;
FreeBSD)
	CREATE="-g -z -C$LLIB"
	TARGET=$llib.c
	ln $llib $TARGET
	;;
CLIX)
	CREATE="-DLINTLIBRARY -vxo$LLIB"
	TARGET=$llib.c
	ln $llib $TARGET
	;;
IRIX*)
	CREATE="-DLINTLIBRARY -vxyo$LLIB"
	TARGET=$llib.c
	ln $llib $TARGET
	;;
UNIX_SV)
	CREATE="-DLINTLIBRARY -vxyo$LLIB"
	TARGET=$llib.c
	ln $llib $TARGET
	;;
*)
	echo "Sorry.  I do not know how to build a lint-library for $ARCH"
	exit 1
esac

echo OPT    "$OPT"
echo TARGET "$TARGET"
echo LIBNAME "$llib"
if ( lint $CREATE $OPT $TARGET )
then
	if test -f $llib.ln
	then
		for p in $HOME/lib $HOME/lib/$ARCH $HOME/lib/$ARCH/lint
		do
			if test ! -d $p
			then
				mkdir $p
			fi
		done
		for p in $DST
		do
			cp $llib.ln $p/
		done
		rm -f $llib.ln
	fi
fi
if test "x$TARGET" = "x$llib.c" ; then
	rm -f $TARGET
fi
@


