]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - contrib/bind9/doc/draft/update
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / contrib / bind9 / doc / draft / update
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
13         fi
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
20                 do
21                         if test $j ">" $i
22                         then
23                                  newer=1
24                         fi
25                 done
26                 if test $newer = 1
27                 then
28                         continue;
29                 fi
30         fi
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"
39                 fi
40                 commit="$commit $i"
41         fi
42 done
43 if test -n "$commit"
44 then
45         cvs commit -m "new draft" $commit
46 fi