summaryrefslogtreecommitdiff
path: root/tests/manpage-scan.pl
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2017-02-06 22:47:41 +0100
committerDan Fandrich <dan@coneharvesters.com>2017-02-06 23:37:05 +0100
commitedb2d028551e54a4f328a8798353ca3cffef875e (patch)
treea187fce8ae180f6d7d847117ac3ee1c303fe5f71 /tests/manpage-scan.pl
parent88bdd7cf6fba438bbb3d89641bf03b14e8feead6 (diff)
downloadcurl-edb2d028551e54a4f328a8798353ca3cffef875e.tar.gz
cmdline-opts: Fixed build and test in out of source tree builds
Diffstat (limited to 'tests/manpage-scan.pl')
-rw-r--r--tests/manpage-scan.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/manpage-scan.pl b/tests/manpage-scan.pl
index f374be99d..1cc47eb31 100644
--- a/tests/manpage-scan.pl
+++ b/tests/manpage-scan.pl
@@ -39,8 +39,9 @@
use strict;
use warnings;
-# we may get the dir root pointed out
+# we may get the dir roots 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;
@@ -196,7 +197,7 @@ close(R);
#########################################################################
# parse the curl.1 man page, extract all documented command line options
-open(R, "<$root/docs/curl.1") ||
+open(R, "<$buildroot/docs/curl.1") ||
die "no input file";
my @manpage; # store all parsed parameters
while(<R>) {