]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
make more robust, handle more uri formats used by IETF
authorMark Andrews <marka@isc.org>
Sat, 14 Jul 2012 02:18:56 +0000 (12:18 +1000)
committerMark Andrews <marka@isc.org>
Sat, 14 Jul 2012 02:18:56 +0000 (12:18 +1000)
doc/draft/update

index 9628b57de812548972e0f0717ed9d847ab3d287e..c5e3eecbefc7f8c829cc3ad297a236662acdbfe9 100644 (file)
@@ -14,15 +14,18 @@ for i
 do
        z=
        case $i in
-       http://www.ietf.org/internet-drafts/*)
-               z=`expr "$i" : 'http://www.ietf.org/internet-drafts/\(.*\)'`
-               ;;
-       http://www.ietf.org/id/*)
-               z=`expr "$i" : 'http://www.ietf.org/id/\(.*\)'`
+       http://tools.ietf.org/html/*|http://www.ietf.org/internet-drafts/*|http://www.ietf.org/id/*)
+               z=`expr "$i" : 'http://.*/.*/\(.*\)'`
                ;;
+       *://*/*)
+               echo -n "unknown uri $i"
+               continue;
        esac
        if test -n "$z"
        then
+               case $z in
+               *-[0-9][0-9]) z="$z.txt"''
+               esac
                i="$z"
        fi
        if test -f "$i"