3 # Use this script to update the bind include files used in the nameserver,
4 # after you've imported and built the latest bind code. After you run this,
5 # cvs import the resulting directory
7 # $ cd /usr/src/external/bsd/bind/dist
10 # $ ./binclude4netbsd . /tmp/include
11 # Fix manually the config.h file to disable things controlled by the Makefiles
13 # $ cvs -d cvs.netbsd.org:/cvsroot import src/usr.sbin/bind/include \
18 if [ \
( -z "$1" \
) -o \
( -z "$2" \
) ]
20 echo "Usage: $PROG <bind-src> <include-dest>" 1>&2
28 cp $BIND/config.h
$INCLUDE
32 cp $BIND/lib
/dns
/code.h
$INCLUDE/dns
34 for i
in enumclass.h enumtype.h rdatastruct.h
36 cp $BIND/lib
/dns
/include
/dns
/$i $INCLUDE/dns
41 cp $BIND/lib
/isc
/include
/isc
/platform.h
$INCLUDE/isc
43 mkdir
-p $INCLUDE/lwres
45 for i
in netdb.h platform.h
47 cp $BIND/lib
/lwres
/include
/lwres
/$i $INCLUDE/lwres