From 3323051661f1703d849c4355a52aef11b5a2b19c Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Mon, 09 Aug 2021 00:49:08 +0800 Subject: [PATCH] update appweb build shell script, remove source code packet --- tools/setup_wiringPi.sh | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/tools/setup_wiringPi.sh b/tools/setup_wiringPi.sh index 9dbe3cf..12e7d5c 100755 --- a/tools/setup_wiringPi.sh +++ b/tools/setup_wiringPi.sh @@ -6,14 +6,20 @@ gpio -v > /dev/null if [ $? == 0 ] ; then echo "wiringPi library already installed, exit now..." - return; + #return; fi - if [ ! -d wiringPi ] ; then - git clone git://git.drogon.net/wiringPi + if [ ! -d WiringPi ] ; then + if [ -f WiringPi.tar.bz2 ] ; then + echo "## decompress WiringPi libarary packet ##" + tar -xjf WiringPi.tar.bz2 + else + echo "## git clone WiringPi libarary source code ##" + git clone https://github.com/WiringPi/WiringPi.git + fi fi - cd wiringPi + cd WiringPi git pull origin ./build } @@ -24,7 +30,7 @@ } -install_systools +#install_systools install_wiringpi -- Gitblit v1.9.1