No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / libbind / dist / libc4netbsd
blob9d2bbe0f78210a32ce140dc3515308e893f35d90
1 #!/bin/sh
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
5 # directory
7 # $ cd /usr/src/external/bsd/libbind/dist
8 # $ ./libc4netbsd . /tmp/libc
9 # $ cd /tmp/libc
10 # $ cvs -d cvs.netbsd.org:/cvsroot import src/lib/libc ISC libbind-X-Y-Z
13 PROG=$(basename $0)
14 if [ \( -z "$1" \) -o \( -z "$2" \) ]
15 then
16 echo "Usage: $PROG <bind-src> <libc-dest>" 1>&2
17 exit 1
19 LIBBIND=$1
20 LIBC=$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
27 done
28 cp $LIBBIND/include/resolv_mt.h $LIBC/include
30 mkdir -p $LIBC/inet
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
36 done
38 mkdir -p $LIBC/isc
40 for i in assertions.c ev_streams.c ev_timers.c eventlib_p.h
42 cp $LIBBIND/isc/$i $LIBC/isc/$i
43 done
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
50 done
52 mkdir -p $LIBC/resolv
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
58 done
60 mkdir -p $LIBC/net
61 cp $LIBBIND/isc/base64.c $LIBC/net
62 cp $LIBBIND/doc/resolver.man3 $LIBC/net/resolver.3