partial.sh 749 B

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