Ai
1 Star 0 Fork 4

sklink/ESP32_GRBL_WRITE

forked from cooler/ESP32_GRBL_WRITE 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build-all.sh 986 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# This shell script uses PlatformIO to compile Grbl_ESP32
# for every machine configuration in the Machines/ directory.
# It is useful for automated testing.
trap "echo; exit 255" SIGINT
# With -v, show all output. Otherwise, show just the result
if [ "$1" = "-v" ]; then
FILTER="cat"
FILTER2="cat"
else
FILTER="grep -v Compiling"
FILTER2="grep error\|Took"
fi
set -o pipefail
NUM_ERRORS=0
BuildMachine () {
basename=$1
BF="\"-DMACHINE_FILENAME=$basename\""
displayname=$basename
echo "Building machine $displayname"
PLATFORMIO_BUILD_FLAGS=$BF platformio run 2>&1 | $FILTER | $FILTER2
local re=$?
# check result
if [ $re -ne 0 ]; then
echo "Failed to build machine $displayname"
echo
NUM_ERRORS=$(( NUM_ERRORS + 1 ))
return $re
fi
echo
}
# Build all the machines
for file in `ls ./Grbl_Esp32/src/Machines/*`; do
base=`basename $file`
BuildMachine $base ""
done
exit $NUM_ERRORS
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/sklink/esp32_-grbl_-write.git
git@gitee.com:sklink/esp32_-grbl_-write.git
sklink
esp32_-grbl_-write
ESP32_GRBL_WRITE
master

搜索帮助