No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / bind / dist / binclude4netbsd
blob3d8b3d5d7012bb6a1f6bfb33f28a6a83fd68a977
1 #!/bin/sh
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
8 # $ configure
9 # $ make
10 # $ ./binclude4netbsd . /tmp/include
11 # Fix manually the config.h file to disable things controlled by the Makefiles
12 # $ cd /tmp/include
13 # $ cvs -d cvs.netbsd.org:/cvsroot import src/usr.sbin/bind/include \
14 # ISC bind-X-Y-Z
17 PROG=$(basename $0)
18 if [ \( -z "$1" \) -o \( -z "$2" \) ]
19 then
20 echo "Usage: $PROG <bind-src> <include-dest>" 1>&2
21 exit 1
24 BIND=$1
25 INCLUDE=$2
27 mkdir -p $INCLUDE
28 cp $BIND/config.h $INCLUDE
30 mkdir -p $INCLUDE/dns
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
37 done
39 mkdir -p $INCLUDE/isc
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
48 done