Skip to content

Commit a7dae3b

Browse files
committed
Added build_opt scripts for recipe hook feature
stm32duino/Arduino_Core_STM32#41 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 20eed25 commit a7dae3b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

win/build_opt.bat

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@echo off
2+
set optinname=build_opt.h
3+
set optoutname=build.opt
4+
5+
set sketchname=%1
6+
set optinpath=%2
7+
set optinpath=%optinpath:/=\%
8+
set input=%optinpath%\%optinname%
9+
set optoutpath=%3
10+
set optoutpath=%optoutpath:/=\%
11+
set dest=%optoutpath%\%optoutname%
12+
13+
if exist %input% (
14+
copy "%input%" "%dest%" /Y
15+
) else (
16+
type NUL > %dest%
17+
)

0 commit comments

Comments
 (0)