No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / bind / dist / doc / draft / update
blob6ac20904ab20f2f792bc45b65797d24c26a48391
1 #!/bin/sh
2 commit=
3 for i
4 do
5 z=`expr "$i" : 'http://www.ietf.org/internet-drafts/\(.*\)'`
6 if test -n "$z"
7 then
8 i="$z"
9 fi
10 if test -f "$i"
11 then
12 continue
14 pat=`echo "$i" | sed 's/...txt/??.txt/'`
15 old=`echo $pat 2> /dev/null`
16 if test "X$old" != "X$pat"
17 then
18 newer=0
19 for j in $old
21 if test $j ">" $i
22 then
23 newer=1
25 done
26 if test $newer = 1
27 then
28 continue;
31 if fetch "http://www.ietf.org/internet-drafts/$i"
32 then
33 cvs add "$i"
34 if test "X$old" != "X$pat"
35 then
36 rm $old
37 cvs delete $old
38 commit="$commit $old"
40 commit="$commit $i"
42 done
43 if test -n "$commit"
44 then
45 cvs commit -m "new draft" $commit