]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove -a, as we now use xref instead of full path
authorAlan T. DeKok <aland@freeradius.org>
Fri, 24 Jan 2025 19:32:44 +0000 (14:32 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 24 Jan 2025 19:32:44 +0000 (14:32 -0500)
scripts/asciidoc/conf2adoc

index 48868113877d5108820837e5ef42c1f63fd74d0c..ea8b48c5b6dc972c5aff03aa0eda87c9fc32857e 100755 (executable)
@@ -14,7 +14,7 @@ $raw = 0;
 $blank = 0;
 $print_code = 0;
 
-getopts('a:c:o:t');
+getopts('c:o:t');
 
 $script_dir = dirname(__FILE__);
 $filename = "$script_dir/links.txt";
@@ -164,20 +164,6 @@ sub process_file {
                        if ($links{$key} =~ /^http/) {
                                $link = "`link:" . $links{$key} . "[" . $key . "]`";
 
-                       } elsif ($links{$key} =~ /^$opt_a/) {
-                               #
-                               #  Link to the *relative* path for the file.
-                               #  Note that we're passed "-a foo/doc/raddb",
-                               #  and also an output file of "doc/raddb/bar.adoc"
-                               #  So we need to strip out the duplicate directories.
-                               #
-                               my $absdir = dirname($opt_a . "/" . $output_file);
-                               $absdir =~ s,doc/raddb/,/,;
-
-                               my $relative = File::Spec->abs2rel($links{$key}, $absdir);
-
-                               $link = "link:" . $relative . "[" . $key . "]";
-
                        } else {
                                $link = $links{$key} . "[" . $key . "]";
                        }
@@ -242,8 +228,4 @@ sub HELP_MESSAGE {
        exit 0;
 }
 
-if (!defined $opt_a) {
-       $opt_a = "";
-}
-
 process_file(STDIN, $opt_o);