]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
scripts/managen: fix option 'single'
authorJay Satiro <raysatiro@yahoo.com>
Sun, 16 Feb 2025 07:09:57 +0000 (02:09 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 16 Feb 2025 23:51:30 +0000 (18:51 -0500)
- Fix option 'single' to generate single manpages.

As far as I can tell the option did not work prior to this change.

Example: scripts/managen -d docs/cmdline-opts single variable.md

Closes https://github.com/curl/curl/pull/16344

scripts/managen

index 3cf026eda0c1d766f01309dc510a3ec0c9efab9e..170d1f8bd3f6de29cf057ab55a5d496de4f32855 100755 (executable)
@@ -1182,8 +1182,8 @@ HEADER
 }
 
 sub showonly {
-    my ($f) = @_;
-    if(single($f, 1)) {
+    my ($dir, $f) = @_;
+    if(single($dir, 1, $f, 1)) {
         print STDERR "$f: failed\n";
     }
 }
@@ -1218,7 +1218,7 @@ sub getargs {
         return;
     }
     elsif($f eq "single") {
-        showonly($s[0]);
+        showonly($dir, $s[0]);
         return;
     }
     elsif($f eq "protos") {