cleanup.sh 1.3 KB

123456789101112131415161718192021
  1. #!/bin/bash
  2. if [[ -d belarus-2020-2021 || -d cmz || -d lox-old || -d lox-new || -d sigma-compiler || -d sigma-proofs || -d spongefish || -d troll-patrol || -d parsing-results/lox-old || -d parsing-results/lox-new || -d parsing-results/troll-patrol || -f test-table.tex || -f test-table.pdf ]]; then
  3. rm -rf belarus-2020-2021 cmz lox-{old,new} sigma-{compiler,proofs} spongefish troll-patrol
  4. rm -rf parsing-results/{lox-{old,new},troll-patrol}
  5. rm -f test-table.{tex,pdf}
  6. echo "Done with basic cleanup."
  7. echo "If you want to re-build the docker images, stop (and remove) any running containers and docker rmi the existing images:"
  8. echo " docker rmi lox-{old,new} troll-patrol tp-analysis"
  9. echo "then run ./scripts/setup.sh."
  10. fi
  11. if [[ -f appendix-a-results || -f appendix-a-results.tex || -f appendix-a-results.pdf || -f appendix-c-results.tex || -f appendix-c-results.pdf || -f table-2-results.tex || -f table-2-results.pdf || -f table-3-results.tex || -f table-3-results.pdf ]]; then
  12. if [ "$1" == "--all" ]; then
  13. rm -rf appendix-a-results appendix-{a,c}-results.{tex,pdf} table-{2,3}-results.{tex,pdf}
  14. echo "Done with full cleanup."
  15. else
  16. echo "Did not remove results. Re-run with --all option to remove these files."
  17. fi
  18. fi