File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,11 @@ case "$ESP8266_ARDUINO_BUILDER" in
97
97
install_platformio nodemcuv2
98
98
build_sketches_with_platformio " $mod " " $rem "
99
99
;;
100
+ " print" )
101
+ print_sketch_info " $mod " " $rem "
102
+ ;;
100
103
* )
101
- echo " Unknown builder! Must be either arduino or platformio "
104
+ echo " Unknown builder! Must be one of - arduino, platformio or print "
102
105
exit 1
103
106
;;
104
107
esac
Original file line number Diff line number Diff line change @@ -107,6 +107,23 @@ END {
107
107
awk -v sketch_name=" ${elf_name% .* } " " $awk_script " -
108
108
}
109
109
110
+ function print_sketch_info()
111
+ {
112
+ local build_mod=$1
113
+ local build_rem=$2
114
+
115
+ local testcnt=0
116
+
117
+ for sketch in $ESP8266_ARDUINO_SKETCHES ; do
118
+ testcnt=$(( ($testcnt + 1 ) % $build_mod ))
119
+ if [ $testcnt -ne $build_rem ]; then
120
+ continue # Not ours to do
121
+ fi
122
+
123
+ echo $sketch
124
+ done
125
+ }
126
+
110
127
function format_fqbn()
111
128
{
112
129
local board_name=$1
You can’t perform that action at this time.
0 commit comments