Skip to content
Snippets Groups Projects
Commit 2b3496f4 authored by James Zern's avatar James Zern Committed by Tom Finegan
Browse files

rtcd.pl: tolerate mixed output line endings

strip the default eol from the config header line, then a '\r' if there
is one. this can occur if cmake used to output the header uses windows
eol, but the perl used expects newlines for instance.

Change-Id: I687415878b1a04fd94b12d7b3d3066f448630607
parent d90eefeb
No related branches found
No related tags found
2 merge requests!6Rav1e 11 yushin 1,!3Rav1e 10 yushin
......@@ -51,6 +51,7 @@ my %config = ();
while (<CONFIG_FILE>) {
next if !/^(?:CONFIG_|HAVE_)/;
chomp;
s/\r$//;
my @pair = split /=/;
$config{$pair[0]} = $pair[1];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment