auto_clean.sh 1018 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/bin/sh
  2. echo "********************************"
  3. echo "* clean QT xxx.pro.user* files *"
  4. echo "********************************"
  5. files=`find . -name "*.user*"`
  6. for file in $files
  7. do
  8. echo $file
  9. rm $file
  10. done
  11. echo "done"
  12. #echo "********************************"
  13. #echo "* clean *.so files *"
  14. #echo "********************************"
  15. #files=`find . -name "*.so"`
  16. #for file in $files
  17. #do
  18. # echo $file
  19. # rm $file
  20. #done
  21. #echo "done"
  22. echo "********************************"
  23. echo "* clean protobuf build files *"
  24. echo "********************************"
  25. rm -f ./src/include/msgtype/*
  26. echo "done"
  27. echo "********************************"
  28. echo "* clean binary files *"
  29. echo "********************************"
  30. rm -rf ./bin
  31. rm -rf ./deploy/app
  32. echo "done"
  33. echo "********************************"
  34. echo "* clean QT build folder *"
  35. echo "********************************"
  36. folders=`find . -name "build-*" -type d`
  37. for folder in $folders
  38. do
  39. echo $folder
  40. rm -rf $folder
  41. done
  42. echo "done"
  43. echo "complete !"