code-clean.sh 576 Bytes
Newer Older
1
#!/bin/sh
Dries's avatar
Dries committed
2 3
# $Id$

Dries's avatar
 
Dries committed
4
find . -name "*~" -type f | xargs rm -f
Dries's avatar
 
Dries committed
5
find . -name ".#*" -type f | xargs rm -f
Dries's avatar
 
Dries committed
6 7
find . -name "*.rej" -type f | xargs rm -f
find . -name "*.orig" -type f | xargs rm -f
Dries's avatar
 
Dries committed
8
find . -name "DEADJOE" -type f | xargs rm -f
Dries's avatar
 
Dries committed
9 10
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'