update revision 206a2ec1714a36057227ad8ebafd23cd4972f21f
255N/A#!/bin/sh
255N/Acommit=
255N/Afor i
255N/Ado
255N/A z=`expr "$i" : 'http://www.ietf.org/internet-drafts/\(.*\)'`
255N/A if test -n "$z"
255N/A then
255N/A i="$z"
255N/A fi
255N/A if test -f "$i"
255N/A then
255N/A continue
255N/A fi
255N/A pat=`echo "$i" | sed 's/...txt/??.txt/'`
255N/A old=`echo $pat 2> /dev/null`
255N/A if test "X$old" != "X$pat"
255N/A then
255N/A newer=0
255N/A for j in $old
255N/A do
255N/A if test $j ">" $i
255N/A then
3817N/A newer=1
255N/A fi
255N/A done
255N/A if test $newer = 1
255N/A then
255N/A continue;
1077N/A fi
255N/A fi
255N/A if fetch "http://www.ietf.org/internet-drafts/$i"
844N/A then
1077N/A cvs add "$i"
255N/A if test "X$old" != "X$pat"
255N/A then
1258N/A rm $old
255N/A cvs delete $old
2899N/A commit="$commit $old"
2899N/A fi
3817N/A commit="$commit $i"
3817N/A fi
3817N/Adone
255N/Aif test -n "$commit"
255N/Athen
3466N/A cvs commit -m "new draft" $commit
255N/Afi
255N/A