diff options
Diffstat (limited to 'scripts/code-clean.sh')
-rw-r--r-- | scripts/code-clean.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/code-clean.sh b/scripts/code-clean.sh new file mode 100644 index 000000000..5c14c3721 --- /dev/null +++ b/scripts/code-clean.sh @@ -0,0 +1,5 @@ +#!/bin/sh +find . -name "*~" -type f | xargs rm -f +find . -name "DEADJOE" -type f | xargs rm -f +find . -name "*" -type f | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".tgz" | xargs perl -wi -pe 's/\s+$/\n/' +find . -name "*" -type f | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".tgz" | xargs perl -wi -pe 's/\t/ /g' |