diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-05-09 15:28:09 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-05-09 20:46:16 +0200 |
| commit | d4e54e9f35d532062533f1d369c159810b01d224 (patch) | |
| tree | 7046ff72a41a8b0ad2e40e1d4aa3b191d03f6380 /scripts/remove_temporary_files.sh | |
| parent | 8650b70e06408d394c1708846b6fc2d86cf14079 (diff) | |
Add mechanisms to reformant and check code style (#128)
Use an internal version of astyle (astyle 3.0). Scripts taken from QGIS.
astyle.options from https://github.com/uclouvain/openjpeg/issues/128
scripts/prepare-commit.sh can be used locally to automatically reformat
edited files.
Travis-CI will run scripts/verify-indentation.sh to verify committed files.
Diffstat (limited to 'scripts/remove_temporary_files.sh')
| -rwxr-xr-x | scripts/remove_temporary_files.sh | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/scripts/remove_temporary_files.sh b/scripts/remove_temporary_files.sh new file mode 100755 index 00000000..535cccec --- /dev/null +++ b/scripts/remove_temporary_files.sh @@ -0,0 +1,41 @@ +#!/bin/bash +########################################################################### +# remove_git_confict_files.sh +# --------------------- +# Date : April 2012 +# Copyright : (C) 2012 by Tim Sutton +# Email : tim at kartoza dot com +########################################################################### +# # +# This program is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +########################################################################### + +# +# A simple script to get rid of QGIS related temporary files left in +# your QGIS source folder by git + +# Tim Sutton, May 2008 +find . \ + \( \ + -name "*.orig" \ + -o -name "*.prepare" \ + -o -name "*.sortinc" \ + -o -name "*.unify_includes_modified" \ + -o -name "*.nocopyright" \ + -o -name "astyle*.diff" \ + -o -name "sha-*.diff" \ + -o -name "*.astyle" \ + -o -name "sha*.diff" \ + -o -name "*.bom" \ + -o -name "*.bak" \ + -o -name "*.rej" \ + -o -name "*.orig" \ + -o -name "*.new" \ + -o -name "*~" \ + \) \ + -print \ + -delete |
