Generate docs using same perl as the build process

Ensure the same perl binary is used to generate the docs as used to build the module, to ensure consistency (i.e. don't use the system perl if a different perl is used)
This commit is contained in:
Duncan Ferguson 2015-11-07 11:37:57 +00:00
parent 4c38c4d1f4
commit 7808bd8e20
2 changed files with 4 additions and 1 deletions

View file

@ -33,7 +33,7 @@ for my $source (glob("*")) {
if($source ne "clusterssh_bash_completion.dist") {
print $dfh "\n\n__END__\n\n";
my $pod= qx{ ./$source --generate-pod };
my $pod= qx{ $^X ./$source --generate-pod };
die "Failed to generate pod" if($?);
print $dfh $pod;
}