Create the output directory if needed.

This commit is contained in:
Alexandre Julliard 2005-01-07 17:17:23 +00:00
parent 8c23dba9a2
commit ca4f5faa0a
1 changed files with 6 additions and 0 deletions

View File

@ -2193,6 +2193,12 @@ if (@opt_spec_file_list == 0)
exit 0; # Don't bother processing non-dll files
}
# Make sure the output directory exists
unless (-d $opt_output_directory)
{
mkdir $opt_output_directory or die "Cannot create directory $opt_output_directory\n";
}
# Read in each .spec files exports and other details
while(my $spec_file = shift @opt_spec_file_list)
{