xref: /minix/external/bsd/bind/binclude4netbsd (revision bb9622b5)
1#!/bin/sh
2#
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
6#
7# $ cd bind-X.Y.Z
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/external/bsd/bind/include -m "Include files for bind-X-Y-Z" ISC bind-X-Y-Z
14#
15
16PROG=$(basename $0)
17if [ \( -z "$1" \) -o \( -z "$2" \) ]
18then
19	echo "Usage: $PROG <bind-src> <include-dest>" 1>&2
20	exit 1
21fi
22
23BIND=$1
24INCLUDE=$2
25
26mkdir -p $INCLUDE
27cp $BIND/config.h $INCLUDE
28
29mkdir -p $INCLUDE/dns
30
31cp $BIND/lib/dns/code.h $INCLUDE/dns
32
33for i in enumclass.h enumtype.h rdatastruct.h
34do
35	cp $BIND/lib/dns/include/dns/$i $INCLUDE/dns
36done
37
38mkdir -p $INCLUDE/isc
39
40cp $BIND/lib/isc/include/isc/platform.h $INCLUDE/isc
41
42mkdir -p $INCLUDE/lwres
43
44for i in netdb.h platform.h
45do
46	cp $BIND/lib/lwres/include/lwres/$i $INCLUDE/lwres
47done
48
49cleantags $INCLUDE
50