bunnylaundering.com

bran's blog

Recursive remove garbage files from SVN like .DS_Store, Thumbs.db, ._something etc

Here's the problem. You've been working with this freelancer and you guys have been both committing to your SVN repo. One day you paid attention to the "svn update" scrolling output and noticed that many .DS_Store to directories and a "._filename.extension" file has been created for every single file in your repository. Gah!! Here's what you have to do to get rid of all the garbage files this guy has committed to your otherwise clean SVN repository.

for f in "$@"
  do
    find "$f" -type d -not \( -name .svn -prune \) -print0 | xargs -0 -I test find test -maxdepth 1 -name [file_to_delete] -print0 | xargs -0 svn rm --force
  done
Subscribe to RSS - bran's blog

Who's online

There are currently 0 users online.

contact

Powered by Drupal