BASH 26
Clear_all_build_files.sh Guest on 4th May 2021 06:58:59 PM
  1. #!/bin/bash
  2.  
  3. # Check current build directory size
  4. SIZE_BEFORE=$(du -sk ../../build/ | cut -f1)
  5.  
  6. # Delete files
  7. rm -rf ../checkpoints/
  8. rm -rf ../constraints/cl_clocks_aws.xdc
  9. rm -rf ../reports/
  10. rm -rf .Xil/
  11. rm -f *.nohup.out
  12. rm -f *.vivado.log
  13. rm -f awsver.txt
  14. rm -rf hd_visual/
  15. rm -f last_log
  16. rm -f warnings.txt
  17.  
  18. # Check current build directory size again
  19. SIZE_AFTER=$(du -sk ../../build/ | cut -f1)
  20. DIFFERENCE=$(( ($SIZE_BEFORE - $SIZE_AFTER) / 1024 ))
  21.  
  22. echo "Cleared about $DIFFERENCE MB."

Paste-bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.