From: Alan T. DeKok Date: Fri, 24 Jan 2025 19:32:44 +0000 (-0500) Subject: remove -a, as we now use xref instead of full path X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d711382ff27e8ecd287865997f3eae61607490e5;p=thirdparty%2Ffreeradius-server.git remove -a, as we now use xref instead of full path --- diff --git a/scripts/asciidoc/conf2adoc b/scripts/asciidoc/conf2adoc index 48868113877..ea8b48c5b6d 100755 --- a/scripts/asciidoc/conf2adoc +++ b/scripts/asciidoc/conf2adoc @@ -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);