Fix the out directory, and make sure to create it, even if it's
specified in a relative sense. This commit was SVN r25922.
Этот коммит содержится в:
родитель
226c9af195
Коммит
8e6507588a
6
contrib/dist/make-html-man-pages.pl
поставляемый
6
contrib/dist/make-html-man-pages.pl
поставляемый
@ -28,6 +28,10 @@ my $outdir_base = ".";
|
|||||||
|
|
||||||
sub absoluteize {
|
sub absoluteize {
|
||||||
my ($dir) = shift;
|
my ($dir) = shift;
|
||||||
|
|
||||||
|
mkdir_p($dir)
|
||||||
|
if (! -d $dir);
|
||||||
|
|
||||||
my $start = cwd();
|
my $start = cwd();
|
||||||
chdir($dir);
|
chdir($dir);
|
||||||
$dir = cwd();
|
$dir = cwd();
|
||||||
@ -99,7 +103,7 @@ foreach my $file (@files) {
|
|||||||
my $section = $2;
|
my $section = $2;
|
||||||
|
|
||||||
my $outdir = "$outdir_base/man$section";
|
my $outdir = "$outdir_base/man$section";
|
||||||
my $outfile = "$outdir/man$section/$b.php";
|
my $outfile = "$outdir/$b.php";
|
||||||
$dirs{$outdir} = "";
|
$dirs{$outdir} = "";
|
||||||
push(@{$outfiles->{$section}}, {
|
push(@{$outfiles->{$section}}, {
|
||||||
name => $name,
|
name => $name,
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user