NetBSD/external/bsd/libbind/dist/libc4netbsd
2009-06-08 17:16:18 +00:00

63 lines
1.4 KiB
Bash
Executable File

#!/bin/sh
#
# Use this script to update the libc resolver code, after you've imported
# the latest libbind code. After you run this, cvs import the resulting
# directory
#
# $ cd /usr/src/external/bsd/libbind/dist
# $ ./libc4netbsd . /tmp/libc
# $ cd /tmp/libc
# $ cvs -d cvs.netbsd.org:/cvsroot import src/lib/libc ISC libbind-X-Y-Z
#
PROG=$(basename $0)
if [ \( -z "$1" \) -o \( -z "$2" \) ]
then
echo "Usage: $PROG <bind-src> <libc-dest>" 1>&2
exit 1
fi
LIBBIND=$1
LIBC=$2
mkdir -p $LIBC/include/isc
for i in assertions.h dst.h eventlib.h heap.h list.h memcluster.h
do
cp $LIBBIND/include/isc/$i $LIBC/include/isc/$i
done
cp $LIBBIND/include/resolv_mt.h $LIBC/include
mkdir -p $LIBC/inet
for i in inet_addr.c inet_cidr_ntop.c inet_cidr_pton.c inet_ntop.c \
inet_pton.c nsap_addr.c
do
cp $LIBBIND/inet/$i $LIBC/inet/$i
done
mkdir -p $LIBC/isc
for i in assertions.c ev_streams.c ev_timers.c eventlib_p.h
do
cp $LIBBIND/isc/$i $LIBC/isc/$i
done
mkdir -p $LIBC/nameser
for i in ns_name.c ns_netint.c ns_parse.c ns_print.c ns_samedomain.c ns_ttl.c
do
cp $LIBBIND/nameser/$i $LIBC/nameser/$i
done
mkdir -p $LIBC/resolv
for i in herror.c res_comp.c res_data.c res_debug.c res_debug.h res_init.c \
res_mkquery.c res_private.h res_query.c res_send.c
do
cp $LIBBIND/resolv/$i $LIBC/resolv/$i
done
mkdir -p $LIBC/net
cp $LIBBIND/isc/base64.c $LIBC/net
cp $LIBBIND/doc/resolver.man3 $LIBC/net/resolver.3