scan-adoc-refs: skip opts.adoc and synopsis.adoc files
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 15 Oct 2016 12:40:12 +0000 (14:40 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 15 Oct 2016 12:40:12 +0000 (14:40 +0200)
scan-adoc-refs

index afbabb3..70547e2 100755 (executable)
@@ -233,6 +233,7 @@ sub scan_adoc_file {
 my $scanned_files = {};
 while (my $filename = shift) {
     next if $filename !~ m/\.adoc$/; # skip attributes.txt
+    next if $filename =~ m/-(opts|synopsis)\.adoc$/;
     next if $scanned_files->{$filename};
 
     scan_adoc_file($filename);