- Re-adding code-clean.sh. Didn't mean to remove that.

merge-requests/26/head
Dries Buytaert 2009-03-09 20:46:37 +00:00
parent 2568de0906
commit d23f12d416
1 changed files with 10 additions and 0 deletions

10
scripts/code-clean.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# $Id$
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'