summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-06-07 17:14:31 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-06-07 17:14:31 +0000
commit88e9264dd25dceb98cfc2cb347eaba1ad0b3d664 (patch)
tree80cef53b13a5c2e0ecb545a27df9ff4a309dfaba
parent83db979256f44d6ff5f7b1420ad77782ccec31a9 (diff)
automatically make output directory is using minimal script
-rw-r--r--fips/fipsalgtest.pl7
1 files changed, 4 insertions, 3 deletions
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\"";