aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/manpage-scan.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/manpage-scan.pl b/tests/manpage-scan.pl
index 1cc47eb31..aa67f7f83 100644
--- a/tests/manpage-scan.pl
+++ b/tests/manpage-scan.pl
@@ -197,7 +197,8 @@ close(R);
#########################################################################
# parse the curl.1 man page, extract all documented command line options
-open(R, "<$buildroot/docs/curl.1") ||
+# The man page may or may not be rebuilt, so check both possible locations
+open(R, "<$buildroot/docs/curl.1") || open(R, "<$root/docs/curl.1") ||
die "no input file";
my @manpage; # store all parsed parameters
while(<R>) {