From d7776e3c9a93b0309cf98a56a9dfa26917f4f27d Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sun, 11 Aug 2019 16:55:25 +0800
Subject: [PATCH] add 3rdparty build all shell script

---
 3rdparty/build.sh |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/3rdparty/build.sh b/3rdparty/build.sh
new file mode 100755
index 0000000..6cf1019
--- /dev/null
+++ b/3rdparty/build.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+REP_CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux-
+
+
+function replace_crosstool()
+{
+    for f in `find -iname "build*.sh"`
+    do
+        sed -i -e "s|^CROSSTOOL=.*|CROSSTOOL=$REP_CROSSTOOL|g" $f
+    done
+}
+
+function do_compile
+{
+    for dir in `ls`
+    do
+        if [ -f $dir/build*.sh ] ; then
+            cd $dir
+               ./build*.sh
+            cd -
+        fi
+    done
+}
+
+#replace_crosstool
+
+do_compile
+
+

--
Gitblit v1.9.1