From d711382ff27e8ecd287865997f3eae61607490e5 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Fri, 24 Jan 2025 14:32:44 -0500 Subject: [PATCH] remove -a, as we now use xref instead of full path --- scripts/asciidoc/conf2adoc | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) 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); -- 2.47.3