No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / libbind / dist / include4netbsd
blob0a1a8857ade9f350db8448d702df843df1b70bc5
1 #!/bin/sh
3 # Use this script to update the bind include files used in the nameserver,
4 # after you've imported and built the latest libbind code. After you run this,
5 # cvs import the resulting directory
7 # $ cd /usr/src/external/bsd/libbind/dist
8 # $ ./include4netbsd . /tmp/include
9 # $ cd /tmp/include
10 # $ cvs -d cvs.netbsd.org:/cvsroot import src/include ISC libbind-X-Y-Z
13 PROG=$(basename $0)
14 if [ \( -z "$1" \) -o \( -z "$2" \) ]
15 then
16 echo "Usage: $PROG <libbind-src> <include-dest>" 1>&2
17 exit 1
20 LIBBIND=$1
21 INCLUDE=$2
23 mkdir -p $INCLUDE
25 copy()
27 sed -e 's/ __P((/(/g' \
28 -e 's/));/);/g' \
29 -e 's/u_int\([136]\)/uint\1/g' \
30 -e '/\\file/d' \
31 < "$1" > "$2"
34 for i in netdb.h res_update.h resolv.h
36 copy $LIBBIND/include/$i $INCLUDE/$i
37 done
39 mkdir -p $INCLUDE/arpa
41 for i in inet.h nameser.h nameser_compat.h
43 copy $LIBBIND/include/arpa/$i $INCLUDE/arpa/$i
44 done