bind9/doc/draft/update

47 lines
670 B
Text
Raw Normal View History

2002-07-03 20:32:48 -04:00
#!/bin/sh
2004-06-08 03:12:10 -04:00
commit=
2002-07-03 20:32:48 -04:00
for i
do
2004-03-08 21:44:22 -05:00
z=`expr "$i" : 'http://www.ietf.org/internet-drafts/\(.*\)'`
if test -n "$z"
then
i="$z"
fi
2002-07-03 20:32:48 -04:00
if test -f "$i"
then
continue
fi
pat=`echo "$i" | sed 's/...txt/??.txt/'`
old=`echo $pat 2> /dev/null`
if test "X$old" != "X$pat"
then
newer=0
for j in $old
do
2002-10-25 18:12:09 -04:00
if test $j ">" $i
then
newer=1
fi
done
if test $newer = 1
then
continue;
fi
fi
if fetch "http://www.ietf.org/internet-drafts/$i"
2002-07-03 20:32:48 -04:00
then
cvs add "$i"
if test "X$old" != "X$pat"
then
rm $old
cvs delete $old
2004-06-08 03:12:10 -04:00
commit="$commit $old"
fi
2004-06-08 03:12:10 -04:00
commit="$commit $i"
2002-07-03 20:32:48 -04:00
fi
done
2004-06-08 03:12:10 -04:00
if test -n "$commit"
then
cvs commit -m "new draft" $commit
fi