From: Alan T. DeKok Date: Fri, 25 Jan 2019 15:35:42 +0000 (-0500) Subject: link to bare RFCs, too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8acca20f436eb311f2efd97b68f2e0e4f0b5f9eb;p=thirdparty%2Ffreeradius-server.git link to bare RFCs, too --- diff --git a/scripts/asciidoc/conf2adoc b/scripts/asciidoc/conf2adoc index 5bc87e378b8..05d4234a6af 100755 --- a/scripts/asciidoc/conf2adoc +++ b/scripts/asciidoc/conf2adoc @@ -162,6 +162,8 @@ sub process_file { # # Auto-link to RFCs # + $line =~ s,RFC (\d+),https://tools.ietf.org/html/rfc${2}\[RFC $1\],g; + $line =~ s,Section ([^ ]+) of RFC (\d+),https://tools.ietf.org/html/rfc${2}#section-${1}\[Section $1 of RFC $2\],g; $line =~ s,RFC (\d+) Section ([\d\.]+),https://tools.ietf.org/html/rfc${1}#section-${2}\[RFC $1 Section $2\],g;