summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/scripts/code-clean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/scripts/code-clean.sh')
-rw-r--r--kolab.org/www/drupal-7.26/scripts/code-clean.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/scripts/code-clean.sh b/kolab.org/www/drupal-7.26/scripts/code-clean.sh
new file mode 100644
index 0000000..3338b6a
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/scripts/code-clean.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+find . -name "*~" -type f | xargs rm -f
+find . -name ".#*" -type f | xargs rm -f
+find . -name "*.rej" -type f | xargs rm -f
+find . -name "*.orig" -type f | xargs rm -f
+find . -name "DEADJOE" -type f | xargs rm -f
+find . -type f | grep -v ".psp" | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".tgz" | grep -v ".ico" | grep -v "druplicon" | xargs perl -wi -pe 's/\s+$/\n/'
+find . -type f | grep -v ".psp" | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".tgz" | grep -v ".ico" | grep -v "druplicon" | xargs perl -wi -pe 's/\t/ /g'