Revert "Imported Upstream version 7.53.1"
[platform/upstream/curl.git] / tests / manpage-scan.pl
index 1cc47eb..fc6e1e3 100644 (file)
@@ -39,9 +39,8 @@
 use strict;
 use warnings;
 
-# we may get the dir roots pointed out
+# we may get the dir root pointed out
 my $root=$ARGV[0] || ".";
-my $buildroot=$ARGV[1] || ".";
 my $syms = "$root/docs/libcurl/symbols-in-versions";
 my $curlh = "$root/include/curl/curl.h";
 my $errors=0;
@@ -148,10 +147,10 @@ my %opts = (
     '-N, --buffer' => 6,
     '--sessionid' => 6,
 
-    # deprecated options do not need to be in tool_help.c nor curl.1
-    '--krb4' => 6,
-    '--ftp-ssl' => 6,
-    '--ftp-ssl-reqd' => 6,
+    # deprecated options do not need to be in curl -h output
+    '--krb4' => 4,
+    '--ftp-ssl' => 4,
+    '--ftp-ssl-reqd' => 4,
 
     # for tests and debug only, can remain hidden
     '--test-event' => 6,
@@ -197,7 +196,7 @@ close(R);
 
 #########################################################################
 # parse the curl.1 man page, extract all documented command line options
-open(R, "<$buildroot/docs/curl.1") ||
+open(R, "<$root/docs/curl.1") ||
     die "no input file";
 my @manpage; # store all parsed parameters
 while(<R>) {