mirror of
https://github.com/espressif/mbedtls.git
synced 2025-05-09 19:31:18 +08:00
Modify generate errors script
Modify generate_errors.pl such that it can now handle opening files where the file path includes a directory name containing spaces. Raised in issue #6879. Fix provided by @tom-cosgrove-arm in aforementioned issue. Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
b17803682e
commit
33878ed30b
@ -60,11 +60,11 @@ open(FORMAT_FILE, '<:crlf', "$error_format_file") or die "Opening error format f
|
|||||||
my $error_format = <FORMAT_FILE>;
|
my $error_format = <FORMAT_FILE>;
|
||||||
close(FORMAT_FILE);
|
close(FORMAT_FILE);
|
||||||
|
|
||||||
my @files = <$include_dir/*.h>;
|
my @files = glob qq("$include_dir/*.h");
|
||||||
my @necessary_include_files;
|
my @necessary_include_files;
|
||||||
my @matches;
|
my @matches;
|
||||||
foreach my $file (@files) {
|
foreach my $file (@files) {
|
||||||
open(FILE, '<:crlf', "$file");
|
open(FILE, '<:crlf', $file) or die("$0: $file: $!");
|
||||||
my $content = <FILE>;
|
my $content = <FILE>;
|
||||||
close FILE;
|
close FILE;
|
||||||
my $found = 0;
|
my $found = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user