Ensure the directory exists to receive a deprecated header.
When creating a deprecated header, create the directory it will be located in, if it does not yet exist. Change-Id: Id0ac7327e7dfe5b3e34b431c7bc3844b72251a3d Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
parent
d2f1901807
commit
4816c42115
@ -1130,6 +1130,9 @@ foreach my $lib (@modules_to_sync) {
|
||||
my $guard = "DEPRECATED_HEADER_" . $lib . "_" . $header;
|
||||
$guard =~ s/([^a-zA-Z0-9_])/_/g;
|
||||
|
||||
my $header_dir = dirname($header_path);
|
||||
make_path($header_dir, $lib, $verbose_level);
|
||||
|
||||
open HEADER, ">$header_path" || die "Could not open $header_path for writing!\n";
|
||||
print HEADER "#ifndef $guard\n";
|
||||
print HEADER "#define $guard\n";
|
||||
|
Loading…
Reference in New Issue
Block a user