Projet

Général

Profil

Paste
Télécharger (569 octets) Statistiques
| Branche: | Révision:

root / drupal7 / scripts / code-clean.sh @ 5a4b9049

1
#!/bin/sh
2

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