drupal/scripts/code-clean.sh

9 lines
568 B
Bash
Raw Normal View History

#!/bin/sh
2001-01-26 14:41:44 +00:00
find . -name "*~" -type f | xargs rm -f
2002-12-31 12:11:34 +00:00
find . -name ".#*" -type f | xargs rm -f
find . -name "*.rej" -type f | xargs rm -f
find . -name "*.orig" -type f | xargs rm -f
2001-01-26 14:41:44 +00:00
find . -name "DEADJOE" -type f | xargs rm -f
2003-06-12 19:20:47 +00:00
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'