You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
698B

  1. #!/bin/sh
  2. #
  3. # Execute this script to clean up the working directory
  4. #
  5. # This file is free software: you are free to change and redistribute it.
  6. # There is NO WARRANTY, to the extent permitted by law.
  7. #
  8. if [ -e Makefile ]; then
  9. make clean
  10. fi
  11. # from https://stackoverflow.com/questions/13541615/how-to-remove-files-that-are-listed-in-the-gitignore-but-still-on-the-repositor
  12. cat .gitignore | grep -v nbproject | sed '/^#.*/ d' | sed '/^\s*$/ d' | sed 's/^/rm -rf /' | bash
  13. cd doc
  14. cat .gitignore | grep -v nbproject | sed '/^#.*/ d' | sed '/^\s*$/ d' | sed 's/^/rm -rf /' | bash
  15. cd ..
  16. cd po
  17. cat .gitignore | grep -v nbproject | sed '/^#.*/ d' | sed '/^\s*$/ d' | sed 's/^/rm -rf /' | bash
  18. cd ..