chiark / gitweb /
Merge tag '15.01-RC2' into upstream
[cura.git] / scripts / win32 / check_drivers.bat
1 @echo off
2 setlocal
3 set rambo="drivers/rambo.inf"
4 set arduino="drivers/arduino.inf"
5
6 FOR /F "usebackq" %%A IN ('%rambo%') DO set rambosize=%%~zA
7 FOR /F "usebackq" %%A IN ('%arduino%') DO set arduinosize=%%~zA
8 if not "%rambosize%" == "1257" (
9    echo RAMBo driver file size is wrong. This could be caused by your local git settings changing the LF line into into CRLF.
10    echo Make sure you use the correct INF files
11    taskkill.exe /F /IM "makensis.exe"
12 )
13 if not "%arduinosize%" == "6460" (
14    echo Arduino driver file size is wrong. This could be caused by your local git settings changing the CRLF line into into LF.
15    echo Make sure you use the correct INF files
16    taskkill.exe /F /IM "makensis.exe"
17 )