File: code-clean.sh

package info (click to toggle)
drupal7 7.52-2%2Bdeb9u11
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 21,756 kB
  • sloc: php: 44,022; pascal: 42,649; javascript: 31,405; sh: 1,685; xml: 466; makefile: 21; sql: 1
file content (9 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
#!/bin/sh

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'