From: Harvie Date: Fri, 6 Aug 2010 01:46:48 +0000 (+0200) Subject: Added script anchors2ds.sed to convert anchors in IANA XML format to DS format X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=8e58a704f58a4f4dede79c7e35ea83338a7c2ad1;p=mirrors%2FArchLinux-Packages.git Added script anchors2ds.sed to convert anchors in IANA XML format to DS format --- diff --git a/dnssec-root-zone-trust-anchors/anchors2ds.sed b/dnssec-root-zone-trust-anchors/anchors2ds.sed new file mode 100755 index 0000000..974d1ed --- /dev/null +++ b/dnssec-root-zone-trust-anchors/anchors2ds.sed @@ -0,0 +1,5 @@ +#!/bin/sed -f +# anchors2ds.sed - (C)opyright Thomas Mudrunka (2010) - All rights waived +# This SED script converts trust anchors supplied by IANA in XML format to DS format usable by most applications. +:a;$!N;s/\n//g;ta; +s/\([^<]*\)<\/Zone>[^<]*<[^<]*\([^<]*\)<\/KeyTag>[^<]*\([^<]*\)<\/Algorithm>\([^<]*\)<\/DigestType>[^<]*\([^<]*\)<\/Digest><\/KeyDigest><\/TrustAnchor>/\1 DS \2 \3 \4 \5\n/g