From edb2d028551e54a4f328a8798353ca3cffef875e Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Mon, 6 Feb 2017 22:47:41 +0100 Subject: cmdline-opts: Fixed build and test in out of source tree builds --- tests/data/test1139 | 2 +- tests/manpage-scan.pl | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/data/test1139 b/tests/data/test1139 index 30f730c2e..17c74097f 100644 --- a/tests/data/test1139 +++ b/tests/data/test1139 @@ -19,7 +19,7 @@ Verify that all libcurl options have man pages -%SRCDIR/manpage-scan.pl %SRCDIR/.. +%SRCDIR/manpage-scan.pl %SRCDIR/.. %PWD/.. 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() { -- cgit v1.2.3