File: code-clean.sh

package info (click to toggle)
drupal6 6.6-3lenny6
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 4,868 kB
  • ctags: 372
  • sloc: pascal: 15,958; php: 4,294; sh: 1,562; perl: 126; makefile: 40
file content (10 lines) | stat: -rw-r--r-- 628 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# $Id: code-clean.sh,v 1.8 2005/08/11 13:02:08 dries Exp $

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'