3 # Use this script to update the libc resolver code, after you've imported
4 # the latest libbind code. After you run this, cvs import the resulting
7 # $ cd /usr/src/external/bsd/libbind/dist
8 # $ ./libc4netbsd . /tmp/libc
10 # $ cvs -d cvs.netbsd.org:/cvsroot import src/lib/libc ISC libbind-X-Y-Z
14 if [ \
( -z "$1" \
) -o \
( -z "$2" \
) ]
16 echo "Usage: $PROG <bind-src> <libc-dest>" 1>&2
22 mkdir
-p $LIBC/include
/isc
24 for i
in assertions.h dst.h eventlib.h heap.h list.h memcluster.h
26 cp $LIBBIND/include
/isc
/$i $LIBC/include
/isc
/$i
28 cp $LIBBIND/include
/resolv_mt.h
$LIBC/include
32 for i
in inet_addr.c inet_cidr_ntop.c inet_cidr_pton.c inet_ntop.c \
33 inet_pton.c nsap_addr.c
35 cp $LIBBIND/inet
/$i $LIBC/inet
/$i
40 for i
in assertions.c ev_streams.c ev_timers.c eventlib_p.h
42 cp $LIBBIND/isc
/$i $LIBC/isc
/$i
45 mkdir
-p $LIBC/nameser
47 for i
in ns_name.c ns_netint.c ns_parse.c ns_print.c ns_samedomain.c ns_ttl.c
49 cp $LIBBIND/nameser
/$i $LIBC/nameser
/$i
54 for i
in herror.c res_comp.c res_data.c res_debug.c res_debug.h res_init.c \
55 res_mkquery.c res_private.h res_query.c res_send.c
57 cp $LIBBIND/resolv
/$i $LIBC/resolv
/$i
61 cp $LIBBIND/isc
/base64.c
$LIBC/net
62 cp $LIBBIND/doc
/resolver.man3
$LIBC/net
/resolver
.3