From 5f20547d454eda23ad5db4900a48bc28747d1359 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sun, 11 Aug 2019 11:18:05 +0800
Subject: [PATCH] update build shell script to format

---
 3rdparty/appweb/build.sh |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/3rdparty/appweb/build.sh b/3rdparty/appweb/build.sh
index dc66641..1e6844c 100755
--- a/3rdparty/appweb/build.sh
+++ b/3rdparty/appweb/build.sh
@@ -12,9 +12,9 @@
 
 mkdir -p $PREFIX_PATH/{bin,modules}
 
-if [ -z  $CROSSTOOL ] ; then 
-    CROSSTOOL=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-
-fi
+LYFTP_SRC=ftp://master.iot-yun.club/src/
+
+CROSSTOOL=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-
 
 function msg_banner()
 {
@@ -70,7 +70,8 @@
     msg_banner "Start cross compile $SRC_NAME "
 
     if [ ! -f ${SRC_NAME}.${PACK_SUFIX} ] ; then
-        wget http://museum.php.net/php5/${SRC_NAME}.${PACK_SUFIX}
+        #wget http://museum.php.net/php5/${SRC_NAME}.${PACK_SUFIX}
+        wget $LYFTP_SRC/$SRC_NAME.$PACK_SUFIX
         check_result "ERROR: download ${SRC_NAME} failure"
     fi
 
@@ -119,7 +120,8 @@
     msg_banner "Start cross compile $SRC_NAME "
 
     if [ ! -f ${SRC_NAME}${PACK_SUFIX} ] ; then
-        wget https://embedthis.com/software/${SRC_NAME}${PACK_SUFIX}
+        #wget https://embedthis.com/software/${SRC_NAME}${PACK_SUFIX}
+        wget $LYFTP_SRC/${SRC_NAME}${PACK_SUFIX}
         check_result "ERROR: download ${SRC_NAME} failure"
     fi
 

--
Gitblit v1.9.1