New file |
| | |
| | | #!/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 |
| | | |
| | | |