-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.cmd
171 lines (144 loc) · 3.04 KB
/
make.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
:: File: Make.cmd
:: Author: Ruy Garcia <[email protected]>
:: Author: Koldo Imanol de Miguel <[email protected]>
:: Purpose: Configures Windows enviroment to execute bq Makefile
:: Revision: September 2015 - initial version
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
cls
:: variables
SET me=%~n0
SET "arduino_path=c:\Arduino"
IF EXIST "%arduino_path%" (
ECHO Arduino installation found: "%arduino_path%"
) ELSE (
ECHO Arduino installation not found in "%arduino_path%".
goto exit
)
SET "avr_tools=%arduino_path%\hardware\tools\avr\bin"
ECHO "%avr_tools%"
CD Marlin
:: Start of updater menu
:menu_device
cls
echo BUILD MENU FOR BQ 3D PRINTERS
echo FOR USE WITH WINDOWS
echo -----------------------------
echo.
echo Choose your 3D printer model:
echo.
echo 1- Witbox
echo 2- Witbox 2
echo 3- Hephestos
echo 4- Hephestos XL
echo 5- Hephestos ZUM
echo 6- Hephestos ZUM XL
echo 7- Hephestos 2
echo.
echo Q- Exit updater
echo.
choice /c:1234567Q>nul
if errorlevel 8 goto quit
if errorlevel 7 goto hep2
if errorlevel 6 goto hepzxl
if errorlevel 5 goto hepz
if errorlevel 4 goto hepxl
if errorlevel 3 goto heph
if errorlevel 2 goto wit2
if errorlevel 1 goto wit
:menu_language
cls
echo BUILD MENU FOR BQ 3D PRINTERS
echo FOR USE WITH WINDOWS
echo -----------------------------
echo.
echo Choose the language:
echo.
echo 1- DE - German
echo 2- EN - English
echo 3- ES - Spanish
echo 4- FI - Finnish
echo 5- FR - French
echo 6- IT - Italian
echo 7- NL - Dutch
echo 8- PL - Polish
echo 9- PT - Portuguse
echo.
echo Q- Exit updater
echo.
choice /c:123456789Q>nul
if errorlevel 10 goto quit
if errorlevel 9 goto language_pt
if errorlevel 8 goto language_pl
if errorlevel 7 goto language_nl
if errorlevel 6 goto language_it
if errorlevel 5 goto language_fr
if errorlevel 4 goto language_fi
if errorlevel 3 goto language_es
if errorlevel 2 goto language_en
if errorlevel 1 goto language_de
:: Device targets
:hep2
SET TARGET=hephestos_2
goto language_en
:hepzxl
SET TARGET=hephestos_zum_xl
goto menu_language
:hepz
SET TARGET=hephestos_zum
goto menu_language
:hepxl
SET TARGET=hephestos_xl
goto menu_language
:heph
SET TARGET=hephestos
goto menu_language
:wit2
SET TARGET=witbox_2
goto language_en
:wit
SET TARGET=witbox
goto menu_language
:: Language targets
:language_de
SET LANGUAGE=DE
goto make
:language_en
SET LANGUAGE=EN
goto make
:language_es
SET LANGUAGE=ES
goto make
:language_fi:
SET LANGUAGE=FI
goto make
:language_fr
SET LANGUAGE=FR
goto make
:language_it
SET LANGUAGE=IT
goto make
:language_nl
SET LANGUAGE=NL
goto make
:language_pl
SET LANGUAGE=PL
goto make
:language_pt
SET LANGUAGE=PT
goto make
:make
echo.
echo.
SET /p COM=Enter the COM port for your arduino board: COM
CALL "C:\Program Files (x86)\GnuWin32\bin\make.exe" cleanall
CALL "C:\Program Files (x86)\GnuWin32\bin\make.exe" %TARGET% %LANGUAGE%
CALL "C:\Program Files (x86)\GnuWin32\bin\make.exe"
CALL "C:\Program Files (x86)\GnuWin32\bin\make.exe" upload COM=%COM%
CALL "C:\Program Files (x86)\GnuWin32\bin\make.exe" cleanall
goto exit
:quit
echo Exiting updater
:exit
echo.
set /p EXCH=Press enter to exit...