Home | History | Annotate | Line # | Download | only in bind
binclude4netbsd revision 1.1
      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 
     16 PROG=$(basename $0)
     17 if [ \( -z "$1" \) -o \( -z "$2" \) ]
     18 then
     19 	echo "Usage: $PROG <bind-src> <include-dest>" 1>&2
     20 	exit 1
     21 fi
     22 
     23 BIND=$1
     24 INCLUDE=$2
     25 
     26 mkdir -p $INCLUDE
     27 cp $BIND/config.h $INCLUDE
     28 
     29 mkdir -p $INCLUDE/dns
     30 
     31 cp $BIND/lib/dns/code.h $INCLUDE/dns
     32 
     33 for i in enumclass.h enumtype.h rdatastruct.h
     34 do
     35 	cp $BIND/lib/dns/include/dns/$i $INCLUDE/dns
     36 done
     37 
     38 mkdir -p $INCLUDE/isc
     39 
     40 cp $BIND/lib/isc/include/isc/platform.h $INCLUDE/isc
     41 
     42 for d in irs
     43 do
     44 	mkdir -p $INCLUDE/$d
     45 
     46 	for i in netdb.h platform.h
     47 	do
     48 		cp $BIND/lib/$d/include/$d/$i $INCLUDE/$d
     49 	done
     50 done
     51 
     52 cleantags $INCLUDE
     53