From: Dr. Stephen Henson Date: Thu, 7 Jun 2012 17:14:31 +0000 (+0000) Subject: automatically make output directory is using minimal script X-Git-Tag: OpenSSL-fips-2_0-pl1~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=88e9264dd25dceb98cfc2cb347eaba1ad0b3d664;p=oweals%2Fopenssl.git automatically make output directory is using minimal script --- diff --git a/fips/fipsalgtest.pl b/fips/fipsalgtest.pl index d95a8c324c..2e31335ae9 100644 --- a/fips/fipsalgtest.pl +++ b/fips/fipsalgtest.pl @@ -1021,6 +1021,10 @@ END $out =~ s|/req/(\S+)\.req|/$rspdir/$1.rsp|; my $outdir = $out; $outdir =~ s|/[^/]*$||; + if ( !-d $outdir && ($outfile eq "" || $minimal_script)) { + print STDERR "DEBUG: Creating directory $outdir\n" if $debug; + mkdir($outdir) || die "Can't create directory $outdir"; + } if ($outfile ne "") { if ($win32) { $outdir =~ tr|/|\\|; @@ -1043,9 +1047,6 @@ END } $lastdir = $outdir; } - } elsif ( !-d $outdir ) { - print STDERR "DEBUG: Creating directory $outdir\n" if $debug; - mkdir($outdir) || die "Can't create directory $outdir"; } } my $cmd = "$tcmd \"$sfprefix$req\" \"$sfprefix$out\"";