guowenxue
2023-07-10 5e9d03d507aad324a803eb8795e0eed6fb671761
3rdparty/build.sh
New file
@@ -0,0 +1,28 @@
#!/bin/bash
ARCH=`uname -m`
function msg_banner()
{
    echo ""
    echo "+-----------------------------------------------------------------------"
    echo "|  $1 "
    echo "+-----------------------------------------------------------------------"
    echo ""
}
echo ${ARCH} | grep "arm" > /dev/null
if [ $? == 0 ] ; then
   msg_banner "Start local compile on RaspberryPi..."
   cd arm && bash build.sh
   exit 0;
fi
echo ${ARCH} | grep "x86" > /dev/null
if [ $? == 0 ] ; then
   msg_banner "Start cross compile on x86 server..."
   cd x86 && bash build.sh
   exit 0;
fi