File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -73,15 +73,15 @@ compiler.elf2bin.extra_flags=
7373compiler.elf2hex.extra_flags=
7474
7575# Custom build options
76- build.opt.name=build_opt.h
76+ build.opt.name=build.opt
7777build.opt.path={build.path}/{build.opt.name}
7878
7979# Check if custom build options exist in the sketch folder
80- recipe.hooks.prebuild.1.pattern=bash -c "[ ! -f "{build.source.path}"/build_opt.h ] || cp -f "{build.source.path}"/build_opt.h "{build.path}"/build_opt.h "
81- recipe.hooks.prebuild.2.pattern=bash -c "[ -f "{build.path}"/build_opt.h ] || touch "{build.path}"/build_opt.h "
80+ recipe.hooks.prebuild.1.pattern=bash -c "[ ! -f "{build.source.path}"/build_opt.h ] || cp -f "{build.source.path}"/build_opt.h "{build.path}"/build.opt "
81+ recipe.hooks.prebuild.2.pattern=bash -c "[ -f "{build.path}"/build.opt ] || touch "{build.path}"/build.opt "
8282
83- recipe.hooks.prebuild.1.pattern.windows=cmd /c if exist "{build.source.path}\build_opt.h" COPY /y "{build.source.path}\build_opt.h" "{build.path}\build_opt.h "
84- recipe.hooks.prebuild.2.pattern.windows=cmd /c if not exist "{build.path}\build_opt.h " type nul > "{build.path}\build_opt.h "
83+ recipe.hooks.prebuild.1.pattern.windows=cmd /c if exist "{build.source.path}\build_opt.h" COPY /y "{build.source.path}\build_opt.h" "{build.path}\build.opt "
84+ recipe.hooks.prebuild.2.pattern.windows=cmd /c if not exist "{build.path}\build.opt " type nul > "{build.path}\build.opt "
8585
8686
8787# Compile patterns
You can’t perform that action at this time.
0 commit comments