Thread (2 messages) 2 messages, 2 authors, 2016-08-15

[PATCH] scripts: socfpga_get_sequencer: convert potential CRLF to LF

From: Steffen Trumtrar <hidden>
Date: 2016-08-08 10:51:45
Subsystem: the rest · Maintainer: Linus Torvalds

If u-boot was generated under a DOS system, the sequencer files will have CRLF
linebreaks. The indent-tool has problems with this and as a result the code
will not compile anymore.
Fix up any CRLFs prior with the dos2unix tool.

Signed-off-by: Steffen Trumtrar <redacted>
---
 scripts/socfpga_get_sequencer | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/scripts/socfpga_get_sequencer b/scripts/socfpga_get_sequencer
index fb0ea6628b2a..e0f2e6de2abd 100755
--- a/scripts/socfpga_get_sequencer
+++ b/scripts/socfpga_get_sequencer
@@ -24,6 +24,8 @@ copy_source() {
 
 	unifdef -f ${sequencer_defines} $tgt -o $tgt
 
+	dos2unix $tgt
+
 	echo "	Fixing extern/static keywords..."
 	# Statify all global variables with missing static keyword
 	sed -i 's/^\(extern \|static \|\)\([^*#\/ 	][^(]* [^( ]*\((.*).*$\|=.*;.*$\)\)/static \2/g' $tgt
-- 
2.8.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help