]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Doc: Fix deprecated unescaped braces in perl script
authorPavel Tvrdik <pawel.tvrdik@gmail.com>
Mon, 26 Sep 2016 16:05:51 +0000 (18:05 +0200)
committerPavel Tvrdik <pawel.tvrdik@gmail.com>
Wed, 12 Oct 2016 07:52:55 +0000 (09:52 +0200)
This commit should fix warning `make docs'

./sgml2html bird.sgml Unescaped left brace in regex is deprecated,
  passed through in regex; marked by <-- HERE in m/\\nameurl{ <-- HERE
    (.*)}{(.*)}/ at fmt_latex2e.pl line 287.

doc/sbase/dist/fmt_latex2e.pl

index 1f1217439a8bfb772fa704f50d7c9ebb2c5f0659..d0656b7d37aa6e6f4bedf413dee1bab4af8df2c7 100644 (file)
@@ -284,11 +284,11 @@ $latex2e->{postASP} = sub
        # for nameurl
           if ( /\\nameurl/ )
             {
-               ($urlid, $urlnam) = ($_ =~ /\\nameurl{(.*)}{(.*)}/);
+               ($urlid, $urlnam) = ($_ =~ /\\nameurl\{(.*)\}\{(.*)\}/);
                print $urlnum . ": " . $urlid . "\n" if ( $global->{debug} );
 
                $urldef = latex2e_defnam($urlnum) . "url";
-               s/\\nameurl{.*}{.*}/{\\em $urlnam} {\\tt \\$urldef}/;
+               s/\\nameurl\{.*\}\{.*\}/{\\em $urlnam} {\\tt \\$urldef}/;
                push @urlnames, $_;
                push @urldefines, "\\urldef{\\$urldef} \\url{$urlid}\n";
                $urlnum++;