From: d18c7db Date: Sun, 19 Jul 2009 03:48:02 +0000 (+0000) Subject: Fixed it so it accepts DOS (CRLF) text files as input. X-Git-Tag: v1.0.0~559 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/94f6d4a683bc2ea2826a9c6528120fb5a109da26 Fixed it so it accepts DOS (CRLF) text files as input. --- diff --git a/tools/rbt2c.pl b/tools/rbt2c.pl index 949c9ae9..3e1e1fc4 100644 --- a/tools/rbt2c.pl +++ b/tools/rbt2c.pl @@ -3,6 +3,8 @@ # This tool converts a Xilinx xxx.rbt FPGA bitstream to a table that will # compile as C source code. The output format is DWORDs, MSB first. +local $/ = "\r\n"; + print "// Generated by rbt2c.pl, do not edit!\n\n"; for(1..7) {