3 # Use this script to update the bind include files used in the nameserver,
4 # after you've imported and built the latest libbind code. After you run this,
5 # cvs import the resulting directory
7 # $ cd /usr/src/external/bsd/libbind/dist
8 # $ ./include4netbsd . /tmp/include
10 # $ cvs -d cvs.netbsd.org:/cvsroot import src/include ISC libbind-X-Y-Z
14 if [ \
( -z "$1" \
) -o \
( -z "$2" \
) ]
16 echo "Usage: $PROG <libbind-src> <include-dest>" 1>&2
27 sed -e 's/ __P((/(/g' \
29 -e 's/u_int\([136]\)/uint\1/g' \
34 for i
in netdb.h res_update.h resolv.h
36 copy
$LIBBIND/include
/$i $INCLUDE/$i
39 mkdir
-p $INCLUDE/arpa
41 for i
in inet.h nameser.h nameser_compat.h
43 copy
$LIBBIND/include
/arpa
/$i $INCLUDE/arpa
/$i