]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
scripts: check-html-references: Rename --prefix to --webroot and make it mandatory
authorPeter Krempa <pkrempa@redhat.com>
Tue, 14 Feb 2023 11:05:30 +0000 (12:05 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 15 Feb 2023 11:38:45 +0000 (12:38 +0100)
Force users to pass the path to the root of the webpage the script
should check. The script lives in a different subdirectory so the
default of the current directory doesn't make much sense.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
docs/meson.build
scripts/check-html-references.py

index 5c0c762db1b6532b832a5083945c56905ae8ea04..5ffd39c01bd5057fa7c4b911b1dd0f71b12b14f3 100644 (file)
@@ -359,7 +359,7 @@ test(
   python3_prog,
   args: [
     check_html_references_prog.full_path(),
-    '--prefix',
+    '--webroot',
     meson.project_build_root() / 'docs'
   ],
   env: runutf8,
index 95a61a6bb42f4125f3796625da0b56da539a4cd8..6d9116585ebdfac7ca12d799488fc68caeefadc6 100755 (executable)
@@ -127,14 +127,14 @@ def check_targets(targets, anchors):
 
 
 parser = argparse.ArgumentParser(description='HTML reference checker')
-parser.add_argument('--prefix', default='.',
-                    help='build tree prefix')
+parser.add_argument('--webroot', required=True,
+                    help='path to the web root')
 parser.add_argument('--external', action="store_true",
                     help='print external references instead')
 
 args = parser.parse_args()
 
-files = get_file_list(args.prefix)
+files = get_file_list(args.webroot)
 
 targets, anchors = process_all(files)