From ca4f5faa0a03a1addb753c5618b84ee216a4a764 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 7 Jan 2005 17:17:23 +0000 Subject: [PATCH] Create the output directory if needed. --- tools/c2man.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/c2man.pl b/tools/c2man.pl index 38071e940fb..829f8cceabf 100755 --- a/tools/c2man.pl +++ b/tools/c2man.pl @@ -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) {