From bd11b9cd34ce590f4c5a83e02d711e33ffaf9a2a Mon Sep 17 00:00:00 2001 From: Roman Hosek Date: Tue, 8 Sep 2020 23:50:31 +0200 Subject: [PATCH] make bootstrap script more macOS friendly --- 00_bootstrap.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/00_bootstrap.sh b/00_bootstrap.sh index 3a75bc2..3a510c4 100755 --- a/00_bootstrap.sh +++ b/00_bootstrap.sh @@ -1,7 +1,7 @@ #!/bin/bash echo \#\# First prepare build environment -wget http://shyboy.oss-cn-shenzhen.aliyuncs.com/readonly/tc32_gcc_v2.0.tar.bz2 -O docker/tc32_gcc.tar.bz2 +curl http://shyboy.oss-cn-shenzhen.aliyuncs.com/readonly/tc32_gcc_v2.0.tar.bz2 > docker/tc32_gcc.tar.bz2 docker build ./docker/ -t tc32 @@ -11,5 +11,4 @@ git clone --depth=1 https://github.com/Ai-Thinker-Open/Telink_825X_SDK SDK echo \#\# Download ATC_MiThermometer and patch makefile git clone https://github.com/atc1441/ATC_MiThermometer -sed -i "/TEL_PATH := ..\/../c TEL_PATH := ..\/../SDK\/" ATC_MiThermometer/ATC_Thermometer/makefile - +sed -i '' 's#TEL_PATH := ..\/..#TEL_PATH := ..\/../SDK\/#g' ATC_MiThermometer/ATC_Thermometer/makefile