Report failure to open deprecated header file

If a deprecated header file is not writable, report the error message.
The existing error message statement is not processed due to an
operator precedence issue.

Change-Id: Ifb2d4e234c64e560d05c021c621966bce19ce215
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
Matthew Vogt 2012-02-20 10:23:26 +10:00 committed by Qt by Nokia
parent 5942556d65
commit 1f80ce8135

View File

@ -351,7 +351,7 @@ sub syncHeader {
#write it #write it
my $iheader_out = fixPaths($iheader, $header_dir); my $iheader_out = fixPaths($iheader, $header_dir);
open HEADER, ">$header" || die "Could not open $header for writing!\n"; open(HEADER, ">$header") || die "Could not open $header for writing: $!\n";
print HEADER "#include \"$iheader_out\"\n"; print HEADER "#include \"$iheader_out\"\n";
close HEADER; close HEADER;
if(defined($ts)) { if(defined($ts)) {
@ -1133,7 +1133,7 @@ foreach my $lib (@modules_to_sync) {
my $header_dir = dirname($header_path); my $header_dir = dirname($header_path);
make_path($header_dir, $lib, $verbose_level); make_path($header_dir, $lib, $verbose_level);
open HEADER, ">$header_path" || die "Could not open $header_path for writing!\n"; open(HEADER, ">$header_path") || die "Could not open $header_path for writing: $!\n";
print HEADER "#ifndef $guard\n"; print HEADER "#ifndef $guard\n";
print HEADER "#define $guard\n"; print HEADER "#define $guard\n";
my $warning = "Header <$lib/"; my $warning = "Header <$lib/";