partial.sh 801 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #qtmake="/opt/Qt5.10.1/5.10.1/gcc_64/bin/qmake"
  2. qtmake="/usr/lib/aarch64-linux-gnu/qt5/bin/qmake"
  3. #qtmake="/opt/Qt5.11.2/5.11.2/gcc_64/bin/qmake"
  4. show_error=$1
  5. check_result()
  6. {
  7. if [ "$1" != 0 -a "$show_error" == "s" ];then
  8. echo -e "\e[33m*************************************************\e[0m"
  9. echo -e "\e[31m Please modify build error first,Exit!\e[0m"
  10. echo -e "\e[33m*************************************************\e[0m"
  11. exit 1
  12. fi
  13. }
  14. MAKEOPT=-j8
  15. mkdir bin
  16. decition_app_name=(
  17. decition_brain
  18. #decition_brain_ge3
  19. #decition_brain_qingyuan
  20. #decition_brain_vv7
  21. )
  22. for x in ${decition_app_name[@]}
  23. do
  24. cd src/decition/${x}/
  25. $qtmake ${x}.pro
  26. make $MAKEOPT
  27. check_result $?
  28. make clean
  29. cp ${x} ./../../../bin/
  30. rm Makefile
  31. rm .qmake.stash
  32. rm ${x}
  33. cd ../../../
  34. done