remove_temporary_files.sh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. ###########################################################################
  3. # remove_git_confict_files.sh
  4. # ---------------------
  5. # Date : April 2012
  6. # Copyright : (C) 2012 by Tim Sutton
  7. # Email : tim at kartoza dot com
  8. ###########################################################################
  9. # #
  10. # This program is free software; you can redistribute it and/or modify #
  11. # it under the terms of the GNU General Public License as published by #
  12. # the Free Software Foundation; either version 2 of the License, or #
  13. # (at your option) any later version. #
  14. # #
  15. ###########################################################################
  16. #
  17. # A simple script to get rid of QGIS related temporary files left in
  18. # your QGIS source folder by git
  19. # Tim Sutton, May 2008
  20. find . \
  21. \( \
  22. -name "*.orig" \
  23. -o -name "*.prepare" \
  24. -o -name "*.sortinc" \
  25. -o -name "*.unify_includes_modified" \
  26. -o -name "*.nocopyright" \
  27. -o -name "astyle*.diff" \
  28. -o -name "sha-*.diff" \
  29. -o -name "*.astyle" \
  30. -o -name "sha*.diff" \
  31. -o -name "*.bom" \
  32. -o -name "*.bak" \
  33. -o -name "*.rej" \
  34. -o -name "*.orig" \
  35. -o -name "*.new" \
  36. -o -name "*~" \
  37. \) \
  38. -print \
  39. -delete