@@ -139,7 +139,7 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
139
139
echo " Skipping $sketchname for target $target "
140
140
exit 0
141
141
fi
142
-
142
+
143
143
ARDUINO_CACHE_DIR=" $HOME /.arduino/cache.tmp"
144
144
if [ -n " $ARDUINO_BUILD_DIR " ]; then
145
145
build_dir=" $ARDUINO_BUILD_DIR "
@@ -177,7 +177,7 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
177
177
--build-path " $build_dir " \
178
178
$xtra_opts " ${sketchdir} " \
179
179
> $output_file
180
-
180
+
181
181
exit_status=$?
182
182
if [ $exit_status -ne 0 ]; then
183
183
echo " " ERROR: Compilation failed with error code $exit_status " "
@@ -198,11 +198,11 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
198
198
# Extract the desired substring using sed
199
199
lib_sketch_name=$( echo " $directory_path " | sed " s|$constant_part ||" )
200
200
# append json file where key is fqbn, sketch name, sizes -> extracted values
201
- echo " {\" name\" : \" $lib_sketch_name \" ,
201
+ echo " {\" name\" : \" $lib_sketch_name \" ,
202
202
\" sizes\" : [{
203
- \" flash_bytes\" : $flash_bytes ,
204
- \" flash_percentage\" : $flash_percentage ,
205
- \" ram_bytes\" : $ram_bytes ,
203
+ \" flash_bytes\" : $flash_bytes ,
204
+ \" flash_percentage\" : $flash_percentage ,
205
+ \" ram_bytes\" : $ram_bytes ,
206
206
\" ram_percentage\" : $ram_percentage
207
207
}]
208
208
}," >> " $sizes_file "
@@ -365,6 +365,7 @@ function build_sketches(){ # build_sketches <ide_path> <user_path> <target> <pat
365
365
start_index=$(( $chunk_index * $chunk_size ))
366
366
if [ " $sketchcount " -le " $start_index " ]; then
367
367
echo " Skipping job"
368
+ touch ~ /.skipped
368
369
return 0
369
370
fi
370
371
@@ -386,7 +387,7 @@ function build_sketches(){ # build_sketches <ide_path> <user_path> <target> <pat
386
387
if [ $log_compilation ]; then
387
388
# echo board,target and start of sketches to sizes_file json
388
389
echo " { \" board\" : \" $fqbn \" ,
389
- \" target\" : \" $target \" ,
390
+ \" target\" : \" $target \" ,
390
391
\" sketches\" : [" >> " $sizes_file "
391
392
fi
392
393
0 commit comments